From 431fd3697f7007fdf788abb59a4c5bc25d32dffe Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 30 Sep 2021 13:20:40 +0200 Subject: [PATCH] Fix chunkhider Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/TechHider.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/TechHider.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/TechHider.java index f93a567..8b79648 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/TechHider.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/TechHider.java @@ -30,8 +30,6 @@ import de.steamwar.fightsystem.fight.Fight; import de.steamwar.fightsystem.fight.FightTeam; import de.steamwar.fightsystem.states.FightState; import de.steamwar.fightsystem.states.StateDependent; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.UnpooledByteBufAllocator; import org.bukkit.Bukkit; import org.bukkit.GameMode; import org.bukkit.Material; @@ -131,9 +129,6 @@ public class TechHider extends StateDependent { ).collect(Collectors.toList())); byte[] data = chunkDataHider.apply(mapChunkData.get(packet), mapChunkBitMask.get(packet)); - ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.directBuffer(data.length + 100); - data = new byte[buffer.readableBytes()]; - buffer.readBytes(data); mapChunkData.set(packet, data); return packet;