debug + emergency fix 3.0.4-beta

This commit is contained in:
NK 2023-05-27 11:10:14 +01:00
parent d2ecce10db
commit 716c61d6f0
4 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,6 @@
mod_name = Lilase mod_name = Lilase
mod_id = lilase mod_id = lilase
mod_version = 3.0.3 mod_version = 3.0.4-beta
essential.defaults.loom=0 essential.defaults.loom=0

View file

@ -42,7 +42,7 @@ import static me.night0721.lilase.features.flipper.Flipper.webhook;
public class Lilase { public class Lilase {
public static final String MOD_NAME = "Lilase"; public static final String MOD_NAME = "Lilase";
public static final String MODID = "Lilase"; public static final String MODID = "Lilase";
public static final String VERSION = "3.0.3"; public static final String VERSION = "3.0.4-beta";
public static final Minecraft mc = Minecraft.getMinecraft(); public static final Minecraft mc = Minecraft.getMinecraft();
// public static PageFlipper pageFlipper; // public static PageFlipper pageFlipper;
public static Claimer claimer; public static Claimer claimer;

View file

@ -112,7 +112,7 @@ public class SniperFlipperEvents {
} }
}).start(); }).start();
} else if (itemStack.getItem() == Items.gold_nugget || Item.getItemFromBlock(Blocks.gold_block) == itemStack.getItem()) { } else if (itemStack.getItem() == Items.gold_nugget || Item.getItemFromBlock(Blocks.gold_block) == itemStack.getItem()) {
if (spam.isAlive()) { if (spam != null && spam.isAlive()) {
spam.interrupt(); spam.interrupt();
} }
clickWindow(latestWindowId, 31); clickWindow(latestWindowId, 31);

View file

@ -208,8 +208,11 @@ public class Flipper {
try { try {
tileSign = (TileEntitySign) ReflectionUtils.field(guiEditSign, "tileSign"); tileSign = (TileEntitySign) ReflectionUtils.field(guiEditSign, "tileSign");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
tileSign = (TileEntitySign) ReflectionUtils.field(guiEditSign, "field_146848_f"); tileSign = (TileEntitySign) ReflectionUtils.field(guiEditSign, "field_146848_f");
} }
Utils.debugLog("Sign(normal): " + ReflectionUtils.field(guiEditSign, "tileSign"));
Utils.debugLog("Sign(obfuscated): " + ReflectionUtils.field(guiEditSign, "field_146848_f"));
if (tileSign == null) { if (tileSign == null) {
Utils.debugLog("TileEntitySign is null, stopping flipper"); Utils.debugLog("TileEntitySign is null, stopping flipper");
selling_queue.remove(0); selling_queue.remove(0);