Skip to content

Commit

Permalink
Fix things now ready for karel :P
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZed committed Feb 5, 2015
1 parent eab2547 commit 16ed35d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void onPlayerInteract(PlayerInteractEvent event) {
stack.setTagCompound(dat);
}
}
} else if (tile instanceof TileBarrier && event.action.equals(PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) && item instanceof ItemSpade) {
} else if (tile instanceof TileBarrier && event.action.equals(PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) && item instanceof ItemSoulFragment) {
TileBarrier HxCTile = (TileBarrier) tile;
HxCTile.modifier = (HxCTile.modifier + 1);
if (!world.isRemote)
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/HxCKDMS/HxCBlocks/Events/EventSlaughter.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void Slaughter(int[] coords, World world){
}

protected AxisAlignedBB getAreaBoundingBox(float x, float y, float z, int mod) {
return AxisAlignedBB.getBoundingBox(x - (0.5 + mod), y - (1.5 + mod), z - (0.5 + mod),
/** Indented because CDO :P **/ (x + 0.5) + mod, (y + 1.5) + mod, z +(0.5 + mod));
return AxisAlignedBB.getBoundingBox(x - 1 + mod, y - 1 + mod, z - 1 + mod,
/** Indented because CDO :P **/ x + 0.5 + mod, y + 1 + mod, z +1 + mod);
}
}
4 changes: 2 additions & 2 deletions src/main/java/HxCKDMS/HxCBlocks/Events/EventVacuumItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void vacuum(int[] coords, World world) {
}

protected AxisAlignedBB getAreaBoundingBox(float x, float y, float z, int mod) {
return AxisAlignedBB.getBoundingBox(x - (0.5 + mod), y - (2 + mod), z - (0.5 + mod),
/** Indented because CDO :P **/ (x + 0.5) + mod, (y + 2) + mod, z +(0.5 + mod));
return AxisAlignedBB.getBoundingBox(x - 1 + mod, y - 1 + mod, z - 1 + mod,
/** Indented because CDO :P **/ x + 0.5 + mod, y + 1 + mod, z +1 + mod);
}
}
4 changes: 2 additions & 2 deletions src/main/java/HxCKDMS/HxCBlocks/Events/EventVacuumXP.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void vacuum(int[] coords, World world) {
}

protected AxisAlignedBB getAreaBoundingBox(float x, float y, float z, int mod) {
return AxisAlignedBB.getBoundingBox(x - (0.5 + mod), y - (2 + mod), z - (0.5 + mod),
/** Indented because CDO :P **/ (x + 0.5) + mod, (y + 2) + mod, z +(0.5 + mod));
return AxisAlignedBB.getBoundingBox(x - 1 + mod, y - 1 + mod, z - 1 + mod,
/** Indented because CDO :P **/ x + 0.5 + mod, y + 1 + mod, z +1 + mod);
}
}

0 comments on commit 16ed35d

Please sign in to comment.