Move all config stuff to config patch

This commit is contained in:
William Blake Galbreath
2021-06-25 20:08:05 -05:00
parent 44e4acda63
commit 4a2d580185
146 changed files with 506 additions and 610 deletions

View File

@@ -18,10 +18,10 @@ index dbdaadfaeea555904556136a7cca02aa59b85369..04b9a36d978b085d9cb35030c6e6395e
long l = this.levelData.getDayTime() + 24000L;
TimeSkipEvent event = new TimeSkipEvent(this.getWorld(), TimeSkipEvent.SkipReason.NIGHT_SKIP, (l - l % 24000L) - this.getDayTime());
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
index 4dd8177e0cdca6fc57818ce927bbdca49d102261..24fd78a503520e3e01f86a286bc3777f2db2b781 100644
index 46b55243f074ecf8453eec11144c7b315510170a..2c91dfc369432355b407777820914d0b14da457f 100644
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
@@ -298,6 +298,7 @@ public class PurpurWorldConfig {
@@ -300,6 +300,7 @@ public class PurpurWorldConfig {
public boolean playerFixStuckPortal = false;
public boolean creativeOnePunch = false;
public boolean playerSleepNearMonsters = false;
@@ -29,7 +29,7 @@ index 4dd8177e0cdca6fc57818ce927bbdca49d102261..24fd78a503520e3e01f86a286bc3777f
private void playerSettings() {
idleTimeoutKick = getBoolean("gameplay-mechanics.player.idle-timeout.kick-if-idle", idleTimeoutKick);
idleTimeoutTickNearbyEntities = getBoolean("gameplay-mechanics.player.idle-timeout.tick-nearby-entities", idleTimeoutTickNearbyEntities);
@@ -312,6 +313,7 @@ public class PurpurWorldConfig {
@@ -314,6 +315,7 @@ public class PurpurWorldConfig {
playerFixStuckPortal = getBoolean("gameplay-mechanics.player.fix-stuck-in-portal", playerFixStuckPortal);
creativeOnePunch = getBoolean("gameplay-mechanics.player.one-punch-in-creative", creativeOnePunch);
playerSleepNearMonsters = getBoolean("gameplay-mechanics.player.sleep-ignore-nearby-mobs", playerSleepNearMonsters);