Moving interaction to be server-side only fixes issues with memory cards. Fixes #2425

This commit is contained in:
Sebastian Hartte 2016-10-08 20:37:11 +02:00
parent 0b261aac24
commit 04ec9ba749
1 changed files with 7 additions and 1 deletions

View File

@ -449,6 +449,12 @@ public class PartPlacement
@SubscribeEvent
public void playerInteract( final PlayerInteractEvent event )
{
// Only handle the main hand event
if( event.getHand() != EnumHand.MAIN_HAND )
{
return;
}
if( event instanceof PlayerInteractEvent.RightClickEmpty && event.getEntityPlayer().worldObj.isRemote )
{
// re-check to see if this event was already channeled, cause these two events are really stupid...
@ -482,7 +488,7 @@ public class PartPlacement
}
}
}
else if( event instanceof PlayerInteractEvent.RightClickBlock && event.getEntityPlayer().worldObj.isRemote )
else if( event instanceof PlayerInteractEvent.RightClickBlock && !event.getEntityPlayer().worldObj.isRemote )
{
if( this.placing.get() != null )
{