mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Add comment about giant's odd jump height midifier
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
From 2c8f624c37b9234a4c5f213a2f311dbc46fd6729 Mon Sep 17 00:00:00 2001
|
||||
From e0c7eb5d24016ff2501d6375be196188724376dd 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
|
||||
|
||||
---
|
||||
.../java/net/minecraft/server/BiomeBase.java | 1 +
|
||||
.../java/net/minecraft/server/Biomes.java | 23 +++++++++++++++++++
|
||||
.../minecraft/server/EntityGiantZombie.java | 22 +++++++++++++++++-
|
||||
3 files changed, 45 insertions(+), 1 deletion(-)
|
||||
.../java/net/minecraft/server/Biomes.java | 23 ++++++++++++++++++
|
||||
.../minecraft/server/EntityGiantZombie.java | 24 ++++++++++++++++++-
|
||||
3 files changed, 47 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BiomeBase.java b/src/main/java/net/minecraft/server/BiomeBase.java
|
||||
index 72eb669c5..f1500f7a0 100644
|
||||
@@ -55,10 +55,10 @@ index 317db4b12..69ba98b66 100644
|
||||
+ // Purpur end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityGiantZombie.java b/src/main/java/net/minecraft/server/EntityGiantZombie.java
|
||||
index e9962c2a7..f4e087890 100644
|
||||
index e9962c2a7..5c44c794c 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityGiantZombie.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityGiantZombie.java
|
||||
@@ -27,6 +27,26 @@ public class EntityGiantZombie extends EntityMonster {
|
||||
@@ -27,6 +27,28 @@ public class EntityGiantZombie extends EntityMonster {
|
||||
}
|
||||
|
||||
// Purpur start
|
||||
@@ -79,13 +79,15 @@ index e9962c2a7..f4e087890 100644
|
||||
+
|
||||
+ @Override
|
||||
+ public float cW() { // 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;
|
||||
+ }
|
||||
+
|
||||
@Override
|
||||
public boolean a(EntityHuman entityhuman, EnumHand enumhand) { // processInteract
|
||||
return super.a(entityhuman, enumhand) || tryRide(entityhuman, enumhand);
|
||||
@@ -35,6 +55,6 @@ public class EntityGiantZombie extends EntityMonster {
|
||||
@@ -35,6 +57,6 @@ public class EntityGiantZombie extends EntityMonster {
|
||||
|
||||
@Override
|
||||
public float a(BlockPosition blockposition, IWorldReader iworldreader) {
|
||||
|
||||
Reference in New Issue
Block a user