mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
Update to 1.15
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 3fbc8e4ab09dd097f955a0cdc969c0b0fe94b828 Mon Sep 17 00:00:00 2001
|
||||
From 9c583298f7a57968d72cdc8d772610fb58bc456b Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Sun, 12 May 2019 00:43:12 -0500
|
||||
Subject: [PATCH] Make giants naturally spawn and have AI
|
||||
@@ -13,19 +13,19 @@ Subject: [PATCH] Make giants naturally spawn and have AI
|
||||
6 files changed, 89 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BiomeBase.java b/src/main/java/net/minecraft/server/BiomeBase.java
|
||||
index a86ece834..fbbb3b7c5 100644
|
||||
index 0102a170dc..9637098462 100644
|
||||
--- a/src/main/java/net/minecraft/server/BiomeBase.java
|
||||
+++ b/src/main/java/net/minecraft/server/BiomeBase.java
|
||||
@@ -108,6 +108,7 @@ public abstract class BiomeBase {
|
||||
return this.m != null;
|
||||
@@ -112,6 +112,7 @@ public abstract class BiomeBase {
|
||||
return MathHelper.f(0.62222224F - f * 0.05F, 0.5F + f * 0.1F, 1.0F);
|
||||
}
|
||||
|
||||
+ protected void addMobSpawn(EnumCreatureType creaturetype, BiomeBase.BiomeMeta biomemeta) { a(creaturetype, biomemeta); } // Purpur - OBFHELPER
|
||||
protected void a(EnumCreatureType enumcreaturetype, BiomeBase.BiomeMeta biomebase_biomemeta) {
|
||||
((List) this.u.get(enumcreaturetype)).add(biomebase_biomemeta);
|
||||
((List) this.v.get(enumcreaturetype)).add(biomebase_biomemeta);
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/Biomes.java b/src/main/java/net/minecraft/server/Biomes.java
|
||||
index f4698a680..b075ee4ec 100644
|
||||
index 12742870ca..d1f8695fee 100644
|
||||
--- a/src/main/java/net/minecraft/server/Biomes.java
|
||||
+++ b/src/main/java/net/minecraft/server/Biomes.java
|
||||
@@ -92,5 +92,30 @@ public abstract class Biomes {
|
||||
@@ -60,7 +60,7 @@ index f4698a680..b075ee4ec 100644
|
||||
+ // Purpur end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityGiantZombie.java b/src/main/java/net/minecraft/server/EntityGiantZombie.java
|
||||
index 29e7639ad..be7e6bae4 100644
|
||||
index b7e2022b19..c2408e7211 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityGiantZombie.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityGiantZombie.java
|
||||
@@ -21,11 +21,55 @@ public class EntityGiantZombie extends EntityMonster {
|
||||
@@ -90,7 +90,7 @@ index 29e7639ad..be7e6bae4 100644
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public float cX() { // jump height
|
||||
+ public float dp() { // jump height
|
||||
+ // make giants jump as high as everything else relative to their size
|
||||
+ // 1.0 makes bottom of feet about as high as their waist when they jump
|
||||
+ return 1.0F;
|
||||
@@ -117,15 +117,15 @@ index 29e7639ad..be7e6bae4 100644
|
||||
+
|
||||
@Override
|
||||
public float a(BlockPosition blockposition, IWorldReader iworldreader) {
|
||||
- return iworldreader.v(blockposition) - 0.5F;
|
||||
- return iworldreader.w(blockposition) - 0.5F;
|
||||
+ return super.a(blockposition, iworldreader); // Purpur - fix light requirements for natural spawns
|
||||
}
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityInsentient.java b/src/main/java/net/minecraft/server/EntityInsentient.java
|
||||
index 47090db89..2a74c3d18 100644
|
||||
index 90587f4c82..53fffb3dc3 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityInsentient.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityInsentient.java
|
||||
@@ -850,6 +850,7 @@ public abstract class EntityInsentient extends EntityLiving {
|
||||
@@ -856,6 +856,7 @@ public abstract class EntityInsentient extends EntityLiving {
|
||||
return f;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ index 47090db89..2a74c3d18 100644
|
||||
protected void a(DifficultyDamageScaler difficultydamagescaler) {
|
||||
if (this.random.nextFloat() < 0.15F * difficultydamagescaler.d()) {
|
||||
int i = this.random.nextInt(2);
|
||||
@@ -957,6 +958,7 @@ public abstract class EntityInsentient extends EntityLiving {
|
||||
@@ -963,6 +964,7 @@ public abstract class EntityInsentient extends EntityLiving {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ index 47090db89..2a74c3d18 100644
|
||||
float f = difficultydamagescaler.d();
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
index 9d4a96ae4..694075cb1 100644
|
||||
index 58bbf2f9d2..53d5900411 100644
|
||||
--- a/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
+++ b/src/main/java/net/minecraft/server/SpawnerCreature.java
|
||||
@@ -77,6 +77,14 @@ public final class SpawnerCreature {
|
||||
@@ -161,7 +161,7 @@ index 9d4a96ae4..694075cb1 100644
|
||||
EntityPositionTypes.Surface entitypositiontypes_surface = EntityPositionTypes.a(entitytypes);
|
||||
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurConfig.java b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
index d3409155e..1c8912530 100644
|
||||
index d3409155ed..1c89125300 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
@@ -141,6 +141,13 @@ public class PurpurConfig {
|
||||
@@ -179,5 +179,5 @@ index d3409155e..1c8912530 100644
|
||||
public static float crystalsAttackPhantomDamage = 1.0F;
|
||||
public static double phantomsOrbitCrystalsRadius = 0.0D;
|
||||
--
|
||||
2.23.0.rc1
|
||||
2.24.0.rc1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user