From a31c99d03d7d149aa3f1d7a3ca5c3f314231a217 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 23 Aug 2022 20:51:10 +0200 Subject: [PATCH] Fix sign editing --- .../src/de/steamwar/bausystem/world/RegionListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Core/src/de/steamwar/bausystem/world/RegionListener.java b/BauSystem_Core/src/de/steamwar/bausystem/world/RegionListener.java index a59e1c0..e5e5cd4 100644 --- a/BauSystem_Core/src/de/steamwar/bausystem/world/RegionListener.java +++ b/BauSystem_Core/src/de/steamwar/bausystem/world/RegionListener.java @@ -56,8 +56,8 @@ public class RegionListener implements Listener { private static final Reflection.FieldAccessor blockPosY = Reflection.getField(baseBlockPosition, int.class, 1); private static final Reflection.FieldAccessor blockPosZ = Reflection.getField(baseBlockPosition, int.class, 2); public RegionListener() { - TinyProtocol.instance.setInFilter((player, channel, packet) -> { - if(!signEditing.contains(player) || !updateSign.isInstance(packet)) + TinyProtocol.instance.addFilter(updateSign, (player, packet) -> { + if(!signEditing.contains(player)) return packet; String[] lines = signText.get(packet);