mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 13:10:13 +00:00
Implemented 'pull' mode for machines.
This commit is contained in:
1 parent
0d04e725e3
commit
644300246f
2 files changed
+70
-4
No files matched your search
@@ -83,6 +83,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
if(entityPlayer.isSneaking() && entityPlayer.getCurrentEquippedItem().getItem() instanceof IToolWrench) {
|
||||
IToolWrench wrench = (IToolWrench) entityPlayer.getCurrentEquippedItem().getItem();
|
||||
if(wrench.canWrench(entityPlayer, x, y, z)) {
|
||||
//TODO: Store Machine IO settings, power etc
|
||||
removedByPlayer(world, entityPlayer, x, y, z);
|
||||
if(entityPlayer.getCurrentEquippedItem().getItem() instanceof IToolWrench) {
|
||||
((IToolWrench) entityPlayer.getCurrentEquippedItem().getItem()).wrenchUsed(entityPlayer, x, y, z);
|
||||
|
||||
Reference in new issue
Block a user