Skip to content

Commit

Permalink
Fix an oopsies. Update to 4.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed Mar 1, 2016
1 parent 1f19215 commit eb8d407
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {

apply plugin: 'forge'

version = "MC1.7.10-BC7.1release" + "4.0.7"
version = "MC1.7.10-BC7.1release" + "4.0.8"
group= "abo" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "ABO"

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/abo/ABO.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ public void onRightClick(PlayerInteractEvent event) {
}
}
if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_AIR) {
if (event.entityPlayer != null && event.entityPlayer.inventory.getCurrentItem() != null && event.entityPlayer.inventory.getCurrentItem().getItem() instanceof ItemDye) {
if (event.entityPlayer != null && (event.entityPlayer.getCommandSenderName().equalsIgnoreCase("da3dsoul") || event.entityPlayer.getCommandSenderName().equalsIgnoreCase("balmung42")) && event.entityPlayer.inventory.getCurrentItem() != null && event.entityPlayer.inventory.getCurrentItem().getItem() instanceof ItemDye) {
ItemStack itemstack = event.entityPlayer.getCurrentEquippedItem();

int range = 150;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/da3dsoul/ShapeGen/ShapeGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -1640,9 +1640,9 @@ public void blendNewOld(World world, int i, int j, int k, int size, boolean excl
}
if(newBlocks[_x][_y][_z] == null || newBlocks[_x][_y][_z].getBlock() == null) continue;

if (world.getBlock((i - _bSize) + _x, (j - _bSize) + _y, (k - _bSize) + _z) != newBlocks[_x][_y][_z].getBlock())
if (world.getBlock((i - _bSize - 1) + _x, (j - _bSize - 1) + _y, (k - _bSize - 1) + _z) != newBlocks[_x][_y][_z].getBlock())
{
addBlock((i - _bSize) + _x, (j - _bSize) + _y, (k - _bSize) + _z, newBlocks[_x][_y][_z].getBlock(), newBlocks[_x][_y][_z].getMeta());
addBlock((i - _bSize - 1) + _x, (j - _bSize - 1) + _y, (k - _bSize - 1) + _z, newBlocks[_x][_y][_z].getBlock(), newBlocks[_x][_y][_z].getMeta());
}
}
}
Expand Down

0 comments on commit eb8d407

Please sign in to comment.