Update to 1.18.2

This commit is contained in:
BillyGalbreath
2022-03-01 17:27:08 -06:00
parent 133b3e1719
commit 90adb4e4af
192 changed files with 1500 additions and 1550 deletions

View File

@@ -5,10 +5,10 @@ Subject: [PATCH] Dolphins naturally aggressive to players chance
diff --git a/src/main/java/net/minecraft/world/entity/animal/Dolphin.java b/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
index 3873fe82ec05f84efadd28ee9f48831b95405de2..7e424c7674e6e8f1db42bbdfbb230174f885a07d 100644
index 3cc3539f0664eeb048290f4d9b229a5d674fff3c..ce86a56da5aaf65a34352eab1da20e4340175248 100644
--- a/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
+++ b/src/main/java/net/minecraft/world/entity/animal/Dolphin.java
@@ -81,6 +81,7 @@ public class Dolphin extends WaterAnimal {
@@ -79,6 +79,7 @@ public class Dolphin extends WaterAnimal {
return !entityitem.hasPickUpDelay() && entityitem.isAlive() && entityitem.isInWater();
};
private int spitCooldown; // Purpur
@@ -16,7 +16,7 @@ index 3873fe82ec05f84efadd28ee9f48831b95405de2..7e424c7674e6e8f1db42bbdfbb230174
public Dolphin(EntityType<? extends Dolphin> type, Level world) {
super(type, world);
@@ -176,6 +177,7 @@ public class Dolphin extends WaterAnimal {
@@ -174,6 +175,7 @@ public class Dolphin extends WaterAnimal {
public SpawnGroupData finalizeSpawn(ServerLevelAccessor world, DifficultyInstance difficulty, MobSpawnType spawnReason, @Nullable SpawnGroupData entityData, @Nullable CompoundTag entityNbt) {
this.setAirSupply(this.getMaxAirSupply());
this.setXRot(0.0F);
@@ -24,7 +24,7 @@ index 3873fe82ec05f84efadd28ee9f48831b95405de2..7e424c7674e6e8f1db42bbdfbb230174
return super.finalizeSpawn(world, difficulty, spawnReason, entityData, entityNbt);
}
@@ -246,18 +248,20 @@ public class Dolphin extends WaterAnimal {
@@ -244,18 +246,20 @@ public class Dolphin extends WaterAnimal {
this.goalSelector.addGoal(0, new BreathAirGoal(this));
this.goalSelector.addGoal(0, new TryFindWaterGoal(this));
this.goalSelector.addGoal(0, new org.purpurmc.purpur.entity.ai.HasRider(this)); // Purpur
@@ -47,7 +47,7 @@ index 3873fe82ec05f84efadd28ee9f48831b95405de2..7e424c7674e6e8f1db42bbdfbb230174
public static AttributeSupplier.Builder createAttributes() {
diff --git a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
index a7321bd88a4721b348cff6c52d4dcf31d27065d3..002fb98018873d8377ff81997947c5daf85201b0 100644
index 27662839ca797f13296bcad00575991be3fa646c..2fdd689519f4610d9845632a88807aad1093d2ed 100644
--- a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
+++ b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
@@ -1196,6 +1196,7 @@ public class PurpurWorldConfig {