Files
Purpur/patches/server/0064-Add-option-to-set-armorstand-step-height.patch
William Blake Galbreath dd928e3864 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
8d036cea Expose the internal current tick
0c715390 [PATCH] bounding box check for hanging entities (#2664)
527073aa Update config version
0d3b35c3 Rename baby zombie movement config option
2019-10-31 13:51:33 -05:00

43 lines
2.0 KiB
Diff

From 5632f7443ddeedcff30dccbed2ed6f8576645367 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <blake.galbreath@gmail.com>
Date: Sun, 6 Oct 2019 12:46:35 -0500
Subject: [PATCH] Add option to set armorstand step height
---
src/main/java/net/minecraft/server/EntityArmorStand.java | 2 +-
src/main/java/net/pl3x/purpur/PurpurConfig.java | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/main/java/net/minecraft/server/EntityArmorStand.java b/src/main/java/net/minecraft/server/EntityArmorStand.java
index 8bd864cb39..f58cfa6da1 100644
--- a/src/main/java/net/minecraft/server/EntityArmorStand.java
+++ b/src/main/java/net/minecraft/server/EntityArmorStand.java
@@ -62,7 +62,7 @@ public class EntityArmorStand extends EntityLiving {
this.leftLegPose = EntityArmorStand.by;
this.rightLegPose = EntityArmorStand.bz;
if (world != null) this.canTick = world.paperConfig.armorStandTick; // Paper - armour stand ticking
- this.K = 0.0F;
+ this.K = net.pl3x.purpur.PurpurConfig.armorstandStepHeight; // Purpur
}
public EntityArmorStand(World world, double d0, double d1, double d2) {
diff --git a/src/main/java/net/pl3x/purpur/PurpurConfig.java b/src/main/java/net/pl3x/purpur/PurpurConfig.java
index 04a58a8da0..f2f61f9975 100644
--- a/src/main/java/net/pl3x/purpur/PurpurConfig.java
+++ b/src/main/java/net/pl3x/purpur/PurpurConfig.java
@@ -188,6 +188,11 @@ public class PurpurConfig {
requireShiftToMount = getBoolean("settings.mobs.require-shift-to-mount", requireShiftToMount);
}
+ public static float armorstandStepHeight = 0.0F;
+ private static void armorstandSettings() {
+ armorstandStepHeight = (float) getDouble("settings.armorstand.step-height", armorstandStepHeight);
+ }
+
public static int feedMushroomsToCows = 0;
private static void cowsSettings() {
feedMushroomsToCows = getInt("settings.mobs.cow.feed-mushrooms-for-mooshroom", feedMushroomsToCows);
--
2.24.0.rc1