From 2c033cdce82ab49112bfdf8bafe5ec12b286e274 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 1 Apr 2021 00:25:04 +0200 Subject: [PATCH] =?UTF-8?q?Final=20F=C3=B6x...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../steamwar/fightsystem/listener/DenyWorldInteraction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/listener/DenyWorldInteraction.java b/FightSystem_Main/src/de/steamwar/fightsystem/listener/DenyWorldInteraction.java index dcbfde4..1ef9e03 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/listener/DenyWorldInteraction.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/listener/DenyWorldInteraction.java @@ -98,10 +98,10 @@ public class DenyWorldInteraction implements Listener { public void onPlayerJoin(PlayerJoinEvent event) { if(FightSystem.ISAPRIL) { PacketContainer demo = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.GAME_STATE_CHANGE); - demo.getBytes().write(0, (byte) 5); + demo.getIntegers().write(0, 5); demo.getFloat().write(0, 0F); PacketContainer rain = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.GAME_STATE_CHANGE); - rain.getBytes().write(0, (byte) 7); + rain.getIntegers().write(0, 7); rain.getFloat().write(0, 5F); try { ProtocolLibrary.getProtocolManager().sendServerPacket(event.getPlayer(), demo);