Moving interaction to be server-side only fixes issues with memory cards. Fixes #2425
This commit is contained in:
parent
0b261aac24
commit
04ec9ba749
|
@ -449,6 +449,12 @@ public class PartPlacement
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void playerInteract( final PlayerInteractEvent event )
|
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 )
|
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...
|
// 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 )
|
if( this.placing.get() != null )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue