bed spam fixed

This commit is contained in:
NK 2023-05-24 23:38:36 +01:00
parent c3c32312cc
commit 1082fadebe

View file

@ -110,8 +110,8 @@ public class SniperFlipperEvents {
ItemStack itemStack = packetSetSlot.func_149174_e();
Utils.debugLog("Slot 31: " + itemStack.getItem().getRegistryName());
if (itemStack.getItem() == Items.bed) {
boolean threadStatus = spam.isAlive();
spam.interrupt();
boolean threadStatus = !spam.isAlive();
if (spam.isAlive()) spam.interrupt();
if (!threadStatus) {
spam.start();
}