Fix magic apiary GUI bypassing claim protection (#63)

This commit is contained in:
Eldrinn-Elantey authored and GitHub committed 2026-05-04 16:39:06 +02:00
1 parent 59aa1ce79c
commit f88d1f8c96
2 files changed
+6 -2

No files matched your search

@@ -36,7 +36,9 @@ public class BlockEffectJar extends BlockContainer {
boolean activate = false;
if (!player.isSneaking()) {
player.openGui(MagicBees.object, UIScreens.EFFECT_JAR.ordinal(), world, x, y, z);
if (!world.isRemote) {
player.openGui(MagicBees.object, UIScreens.EFFECT_JAR.ordinal(), world, x, y, z);
}
activate = true;
}
@@ -40,7 +40,9 @@ public class BlockMagicApiary extends BlockContainer {
boolean activate = false;
if (!player.isSneaking()) {
player.openGui(MagicBees.object, UIScreens.THAUMIC_APIARY.ordinal(), world, x, y, z);
if (!world.isRemote) {
player.openGui(MagicBees.object, UIScreens.THAUMIC_APIARY.ordinal(), world, x, y, z);
}
activate = true;
}