Player affects spawning API
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
--- a/net/minecraft/world/entity/animal/horse/SkeletonTrapGoal.java
|
||||
+++ b/net/minecraft/world/entity/animal/horse/SkeletonTrapGoal.java
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
@Override
|
||||
public boolean canUse() {
|
||||
- return this.horse.level().hasNearbyAlivePlayer(this.horse.getX(), this.horse.getY(), this.horse.getZ(), 10.0D);
|
||||
+ return this.horse.level().hasNearbyAlivePlayerThatAffectsSpawning(this.horse.getX(), this.horse.getY(), this.horse.getZ(), 10.0D); // Paper - Affects Spawning API
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -43,12 +43,12 @@
|
||||
if (entitylightning != null) {
|
||||
entitylightning.moveTo(this.horse.getX(), this.horse.getY(), this.horse.getZ());
|
||||
|
||||
Reference in New Issue
Block a user