mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Port config rewrite (#5378)
Port Config system, Remove some unused code, Refactored various Tier enums out into their own package
This commit is contained in:
1 parent
a776879eed
commit
9d98ef575d
209 files changed
+3275
-2763
No files matched your search
@@ -8,7 +8,7 @@ import mekanism.client.MekanismClient;
|
||||
import mekanism.client.gui.IGuiWrapper;
|
||||
import mekanism.client.sound.SoundHandler;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.config.MekanismConfig.general;
|
||||
import mekanism.common.config.MekanismConfig;
|
||||
import mekanism.common.network.PacketSecurityMode.SecurityModeMessage;
|
||||
import mekanism.common.security.ISecurityItem;
|
||||
import mekanism.common.security.ISecurityTile;
|
||||
@@ -104,7 +104,7 @@ public class GuiSecurityTab extends GuiTileEntityElement<TileEntity> {
|
||||
}
|
||||
|
||||
private SecurityMode getSecurity() {
|
||||
if (!general.allowProtection) {
|
||||
if (!MekanismConfig.current().general.allowProtection.val()) {
|
||||
return SecurityMode.PUBLIC;
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ public class GuiSecurityTab extends GuiTileEntityElement<TileEntity> {
|
||||
|
||||
@Override
|
||||
public void mouseClicked(int xAxis, int yAxis, int button) {
|
||||
if (button == 0 && general.allowProtection) {
|
||||
if (button == 0 && MekanismConfig.current().general.allowProtection.val()) {
|
||||
if (getOwner() != null && mc.player.getUniqueID().equals(getOwner())) {
|
||||
if (inBounds(xAxis, yAxis)) {
|
||||
SecurityMode current = getSecurity();
|
||||
|
||||
Reference in new issue
Block a user