mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-21 20:52:24 +00:00
Fix magic apiary GUI bypassing claim protection (#63)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user