Remove custom packet send to server for part placement since this is triggered again on the server automatically by forge.

This commit is contained in:
Sebastian Hartte 2016-09-12 20:52:32 +02:00
parent d79514e4a0
commit 11625ea240
2 changed files with 1 additions and 2 deletions

View File

@ -168,7 +168,7 @@ public final class ItemMultiPart extends AEBaseItem implements IPartItem, IItemG
{
if( this.getTypeByStack( is ) == PartType.InvalidType )
{
return EnumActionResult.PASS;
return EnumActionResult.FAIL;
}
return AEApi.instance().partHelper().placeBus( is, pos, side, player, hand, w );

View File

@ -399,7 +399,6 @@ public class PartPlacement
else
{
player.swingArm( hand );
NetworkHandler.instance.sendToServer( new PacketPartPlacement( pos, side, getEyeOffset( player ), hand ) );
}
return EnumActionResult.SUCCESS;
}