Skip to content

Commit

Permalink
EntityPlayerSP.isServerWorld is not to be trusted.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Oct 5, 2016
1 parent 0118da1 commit ea17b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mod/chiselsandbits/client/UndoTracker.java
Expand Up @@ -209,7 +209,7 @@ private boolean replaySingleAction(
public void beginGroup(
final EntityPlayer player )
{
if ( player.isServerWorld() )
if ( player.worldObj == null || !player.worldObj.isRemote )
{
// don't touch this stuff if your a server.
return;
Expand Down

0 comments on commit ea17b83

Please sign in to comment.