mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 02:17:42 +01:00
Move all config stuff to config patch
This commit is contained in:
@@ -22,10 +22,10 @@ index c65a6ab9a30ad269a2caad9ab5fad77c4c7ce3aa..082deb251fa793561cc4366cc7b03d7b
|
||||
this.lastGoodX = this.player.getX();
|
||||
this.lastGoodY = this.player.getY();
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index abc517a17afb66766f75c07334cb2ca2bd9e5cc0..4c3ffb3bc74ee37113549fa7d984360f098dc1a0 100644
|
||||
index d2776666a4012a3d1e96ff5ae8659f8195f00755..026c4e5ddedcf732e1ef0c66736193a627d6eb25 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
@@ -144,6 +144,8 @@ public class PurpurWorldConfig {
|
||||
@@ -146,6 +146,8 @@ public class PurpurWorldConfig {
|
||||
public List<Item> itemImmuneToExplosion = new ArrayList<>();
|
||||
public List<Item> itemImmuneToFire = new ArrayList<>();
|
||||
public List<Item> itemImmuneToLightning = new ArrayList<>();
|
||||
@@ -34,7 +34,7 @@ index abc517a17afb66766f75c07334cb2ca2bd9e5cc0..4c3ffb3bc74ee37113549fa7d984360f
|
||||
private void itemSettings() {
|
||||
itemImmuneToCactus.clear();
|
||||
getList("gameplay-mechanics.item.immune.cactus", new ArrayList<>()).forEach(key -> {
|
||||
@@ -181,6 +183,8 @@ public class PurpurWorldConfig {
|
||||
@@ -183,6 +185,8 @@ public class PurpurWorldConfig {
|
||||
Item item = Registry.ITEM.get(new ResourceLocation(key.toString()));
|
||||
if (item != Items.AIR) itemImmuneToLightning.add(item);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user