mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
moar fixes
This commit is contained in:
1 parent
3cc541e872
commit
f52b2f6f08
21 files changed
+724
-722
No files matched your search
@@ -495,10 +495,10 @@ public class AbilityHelper
|
||||
return true;
|
||||
}
|
||||
|
||||
int bID = world.getBlockId(x, y, z);
|
||||
int bIDabove = world.getBlockId(x, y + 1, z);
|
||||
Block b = world.getBlockId(x, y, z);
|
||||
Block babove = world.getBlockId(x, y + 1, z);
|
||||
|
||||
if ((side == 0 || bIDabove != 0 || bID != Blocks.grass.blockID) && bID != Blocks.dirt.blockID)
|
||||
if ((side == 0 || babove != Blocks.air || b != Blocks.grass) && b != Blocks.dirt)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -514,7 +514,7 @@ public class AbilityHelper
|
||||
}
|
||||
else
|
||||
{
|
||||
world.setBlock(x, y, z, block.blockID);
|
||||
world.setBlock(x, y, z, block);
|
||||
onBlockChanged(stack, world, 0, x, y, z, player, random);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user