mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-23 16:23:50 -07:00
SPIGOT-954: Don't send block animations or gamemode updates to players can't see the player
This commit is contained in:
@@ -14,6 +14,15 @@
|
||||
public class PlayerInteractManager {
|
||||
|
||||
public World world;
|
||||
@@ -26,7 +34,7 @@
|
||||
this.gamemode = worldsettings_enumgamemode;
|
||||
worldsettings_enumgamemode.a(this.player.abilities);
|
||||
this.player.updateAbilities();
|
||||
- this.player.server.getPlayerList().sendAll(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.UPDATE_GAME_MODE, new EntityPlayer[] { this.player}));
|
||||
+ this.player.server.getPlayerList().sendAll(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.UPDATE_GAME_MODE, new EntityPlayer[] { this.player}), this.player); // CraftBukkit
|
||||
}
|
||||
|
||||
public WorldSettings.EnumGamemode getGameMode() {
|
||||
@@ -50,7 +58,7 @@
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user