mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 20:22:36 +00:00
more fixes
This commit is contained in:
1 parent
eba66e0182
commit
fb04e8eb08
55 files changed
+1446
-1442
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package tconstruct.util;
|
||||
|
||||
import tconstruct.util.player.ArmorExtended;
|
||||
import mantle.blocks.BlockUtils;
|
||||
import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
|
||||
|
||||
import java.util.Random;
|
||||
@@ -224,7 +225,7 @@ public class TEventHandler
|
||||
{
|
||||
if (stack.itemID >= 4096)
|
||||
return false;
|
||||
Block block = Block.blocksList[stack.itemID];
|
||||
Block block = BlockUtils.getBlockFromItem(stack.getItem());
|
||||
if (block != null)
|
||||
{
|
||||
if (block.isLeaves(null, 0, 0, 0))
|
||||
|
||||
Reference in new issue
Block a user