mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 04:22:26 +00:00
Add config option to disable block protections
This commit is contained in:
1 parent
833d7372fb
commit
03191f198b
9 files changed
+19
-6
No files matched your search
@@ -5,6 +5,7 @@ import io.netty.buffer.ByteBuf;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.api.MekanismConfig.general;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.PacketHandler;
|
||||
import mekanism.common.base.ITileComponent;
|
||||
@@ -58,7 +59,11 @@ public class TileComponentSecurity implements ITileComponent
|
||||
|
||||
public SecurityMode getMode()
|
||||
{
|
||||
return securityMode;
|
||||
if(general.allowProtection) {
|
||||
return securityMode;
|
||||
} else {
|
||||
return SecurityMode.PUBLIC;
|
||||
}
|
||||
}
|
||||
|
||||
public void setMode(SecurityMode mode)
|
||||
|
||||
Reference in new issue
Block a user