From 3f5f4d7b80c26d71d19b2df3374fd3874b835505 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 16 Apr 2023 11:26:09 +0200 Subject: [PATCH] Remove tnt flicker Signed-off-by: yoyosource --- .../de/steamwar/bausystem/features/tpslimit/FreezeUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/FreezeUtils.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/FreezeUtils.java index bdb00e1a..294cffd0 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/FreezeUtils.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/FreezeUtils.java @@ -157,7 +157,8 @@ public class FreezeUtils { for (Entity entity : entities) { if (!(entity instanceof TNTPrimed)) continue; TNTPrimed tnt = (TNTPrimed) entity; - packets.add(ChatWrapper.impl.getDataWatcherPacket(entity.getEntityId(), fuseDataWatcher, tnt.getFuseTicks())); + int fuse = tnt.getFuseTicks(); + packets.add(ChatWrapper.impl.getDataWatcherPacket(entity.getEntityId(), fuseDataWatcher, fuse - (fuse % 5) + 1)); } FreezeUtils.entities.addAll(entities);