Skip to content

Commit

Permalink
Ignore calls to sendMessage for fake players. Fixes MinecraftForge#3796
Browse files Browse the repository at this point in the history
  • Loading branch information
diesieben07 authored and LexManos committed Apr 7, 2017
1 parent 2c7c538 commit 646a897
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public FakePlayer(WorldServer world, GameProfile name)
@Override public Vec3d getPositionVector(){ return new Vec3d(0, 0, 0); }
@Override public boolean canUseCommand(int i, String s){ return false; }
@Override public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar){}
@Override public void sendMessage(ITextComponent component) {}
@Override public void addStat(StatBase par1StatBase, int par2){}
@Override public void openGui(Object mod, int modGuiId, World world, int x, int y, int z){}
@Override public boolean isEntityInvulnerable(DamageSource source){ return true; }
Expand Down

0 comments on commit 646a897

Please sign in to comment.