Fixed tools not working due to a change in the onItemUse method fields in ItemStack.java

I will have to fix the dispenser logic. Manually right clicking works.
This commit is contained in:
Gunther De Wachter
2017-06-30 19:17:06 +02:00
parent 76f17ba53c
commit 7a8499c455
4 changed files with 7 additions and 4 deletions
@@ -47,7 +47,8 @@ public final class DispenserBlockTool extends BehaviorDefaultDispenseItem
final World w = dispenser.getWorld();
if( w instanceof WorldServer )
{
tm.onItemUse( dispensedItem, Platform.getPlayer( (WorldServer) w ), w, dispenser.getBlockPos().offset( enumfacing ), EnumHand.MAIN_HAND, enumfacing, 0.5f, 0.5f, 0.5f );
// TODO : Fix dispenser logic.
tm.onItemUse( Platform.getPlayer( (WorldServer) w ), w, dispenser.getBlockPos().offset( enumfacing ), EnumHand.MAIN_HAND, enumfacing, 0.5f, 0.5f, 0.5f );
}
}
return dispensedItem;