13
0
Dieser Commit ist enthalten in:
Lixfel 2020-11-03 18:31:30 +01:00
Ursprung 268eabec6a
Commit 0f11361651

Datei anzeigen

@ -108,10 +108,9 @@ public abstract class REntity {
public void sneak(boolean sneaking) {
entity.setSneaking(sneaking);
PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.ENTITY_METADATA);
packet.getIntegers().write(0, entity.getId());
packet.getWatchableCollectionModifier().write(0, Util.asList(new WrappedWatchableObject(0, (byte)0x02)));
packet.getWatchableCollectionModifier().write(0, Util.asList(new WrappedWatchableObject(0, (byte)0x02), new WrappedWatchableObject((byte)0xff)));
for(Player player : Bukkit.getOnlinePlayers()){
try {