mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Remove no longer needed undead horse leash patch
This is now default vanilla behavior Fixes #3644
This commit is contained in:
parent
0aa8d8f0e5
commit
d0a723841a
@ -10,8 +10,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
|
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
|
||||||
private void allowLeashingUndeadHorse() {
|
private void nonPlayerEntitiesOnScoreboards() {
|
||||||
allowLeashingUndeadHorse = getBoolean("allow-leashing-undead-horse", false);
|
nonPlayerEntitiesOnScoreboards = getBoolean("allow-non-player-entities-on-scoreboards", false);
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
+ public int nonPlayerArrowDespawnRate = -1;
|
+ public int nonPlayerArrowDespawnRate = -1;
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Aikar <aikar@aikar.co>
|
|
||||||
Date: Fri, 18 Mar 2016 14:19:19 -0400
|
|
||||||
Subject: [PATCH] Undead horse leashing
|
|
||||||
|
|
||||||
default false to match vanilla, but option to allow undead horse types to be leashed.
|
|
||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
||||||
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
|
|
||||||
private void nonPlayerEntitiesOnScoreboards() {
|
|
||||||
nonPlayerEntitiesOnScoreboards = getBoolean("allow-non-player-entities-on-scoreboards", false);
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ public boolean allowLeashingUndeadHorse = false;
|
|
||||||
+ private void allowLeashingUndeadHorse() {
|
|
||||||
+ allowLeashingUndeadHorse = getBoolean("allow-leashing-undead-horse", false);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/EntityHorseAbstract.java b/src/main/java/net/minecraft/server/EntityHorseAbstract.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/net/minecraft/server/EntityHorseAbstract.java
|
|
||||||
+++ b/src/main/java/net/minecraft/server/EntityHorseAbstract.java
|
|
||||||
@@ -0,0 +0,0 @@ public abstract class EntityHorseAbstract extends EntityAnimal implements IInven
|
|
||||||
this.bx = flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ // Paper start
|
|
||||||
+ @Override
|
|
||||||
+ public boolean a(EntityHuman entityhuman) {
|
|
||||||
+ return world.paperConfig.allowLeashingUndeadHorse ? super.a(entityhuman) : super.a(entityhuman) && this.getMonsterType() != EnumMonsterType.UNDEAD; // Paper
|
|
||||||
+ }
|
|
||||||
+ // Paper end
|
|
||||||
+
|
|
||||||
@Override
|
|
||||||
protected void t(float f) {
|
|
||||||
if (f > 6.0F && this.fa()) {
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/EntityInsentient.java b/src/main/java/net/minecraft/server/EntityInsentient.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/net/minecraft/server/EntityInsentient.java
|
|
||||||
+++ b/src/main/java/net/minecraft/server/EntityInsentient.java
|
|
||||||
@@ -0,0 +0,0 @@ public abstract class EntityInsentient extends EntityLiving {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
- public boolean a(EntityHuman entityhuman) {
|
|
||||||
+ public boolean a(EntityHuman entityhuman) { // Paper - overriden in EntityHorseAbstract
|
|
||||||
return !this.isLeashed() && !(this instanceof IMonster);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user