Added Paint Balls.

Added Color Applicator.
This commit is contained in:
AlgorithmX2
2014-05-26 03:26:37 -05:00
parent 82ac1eb2e7
commit 161f88e42c
14 changed files with 694 additions and 27 deletions
+6
View File
@@ -13,6 +13,7 @@ import appeng.api.implementations.items.MemoryCardMessages;
import appeng.core.sync.AppEngPacket;
import appeng.core.sync.network.INetworkInfo;
import appeng.items.tools.ToolNetworkTool;
import appeng.items.tools.powered.ToolColorApplicator;
public class PacketClick extends AppEngPacket
{
@@ -46,6 +47,11 @@ public class PacketClick extends AppEngPacket
mem.notifyUser( player, MemoryCardMessages.SETTINGS_CLEARED );
is.setTagCompound( null );
}
else if ( is != null && AEApi.instance().items().itemColorApplicator.sameAsStack( is ) )
{
ToolColorApplicator mem = (ToolColorApplicator) is.getItem();
mem.cycleColors( is, mem.getColor( is ), 1 );
}
}
// api