mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
Fix silk-touch spawners dropping xp and add config for minimal enchantment level (#454)
This commit is contained in:
@@ -38,10 +38,10 @@ index b061ecc42122ef66fbf87fe017023abca5728a01..6e0b5fbf5b0d216b6b7c647d45ef37cd
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index cd9e1583c5ee1d540992787d04134282b99e050b..9caf2bc24e27bb652612a01d726034f53f4c7fea 100644
|
||||
index ea1b04f44d15af4651fc068c5c514d82566e4d49..503a6cddf4b652544ea884a6e8cb78c2fb8658a2 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
@@ -362,6 +362,7 @@ public class PurpurWorldConfig {
|
||||
@@ -364,6 +364,7 @@ public class PurpurWorldConfig {
|
||||
public boolean creeperRidableInWater = false;
|
||||
public double creeperMaxHealth = 20.0D;
|
||||
public double creeperChargedChance = 0.0D;
|
||||
@@ -49,7 +49,7 @@ index cd9e1583c5ee1d540992787d04134282b99e050b..9caf2bc24e27bb652612a01d726034f5
|
||||
private void creeperSettings() {
|
||||
creeperRidable = getBoolean("mobs.creeper.ridable", creeperRidable);
|
||||
creeperRidableInWater = getBoolean("mobs.creeper.ridable-in-water", creeperRidableInWater);
|
||||
@@ -372,6 +373,7 @@ public class PurpurWorldConfig {
|
||||
@@ -374,6 +375,7 @@ public class PurpurWorldConfig {
|
||||
}
|
||||
creeperMaxHealth = getDouble("mobs.creeper.attributes.max_health", creeperMaxHealth);
|
||||
creeperChargedChance = getDouble("mobs.creeper.naturally-charged-chance", creeperChargedChance);
|
||||
@@ -57,7 +57,7 @@ index cd9e1583c5ee1d540992787d04134282b99e050b..9caf2bc24e27bb652612a01d726034f5
|
||||
}
|
||||
|
||||
public boolean dolphinRidable = false;
|
||||
@@ -469,6 +471,7 @@ public class PurpurWorldConfig {
|
||||
@@ -471,6 +473,7 @@ public class PurpurWorldConfig {
|
||||
public boolean endermanRidable = false;
|
||||
public boolean endermanRidableInWater = false;
|
||||
public double endermanMaxHealth = 40.0D;
|
||||
@@ -65,7 +65,7 @@ index cd9e1583c5ee1d540992787d04134282b99e050b..9caf2bc24e27bb652612a01d726034f5
|
||||
private void endermanSettings() {
|
||||
endermanRidable = getBoolean("mobs.enderman.ridable", endermanRidable);
|
||||
endermanRidableInWater = getBoolean("mobs.enderman.ridable-in-water", endermanRidableInWater);
|
||||
@@ -478,6 +481,7 @@ public class PurpurWorldConfig {
|
||||
@@ -480,6 +483,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.enderman.attributes.max_health", oldValue);
|
||||
}
|
||||
endermanMaxHealth = getDouble("mobs.enderman.attributes.max_health", endermanMaxHealth);
|
||||
|
||||
Reference in New Issue
Block a user