mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 17:37:42 +01:00
Fix non black cat types spawning in swamp huts
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
From a80fe2b39956fdb1b31553590ab26f50f27a5428 Mon Sep 17 00:00:00 2001
|
||||||
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
||||||
|
Date: Thu, 2 Jan 2020 01:23:22 -0600
|
||||||
|
Subject: [PATCH] Fix non black cat types spawning in swamp huts
|
||||||
|
|
||||||
|
---
|
||||||
|
src/main/java/net/minecraft/server/MobSpawnerCat.java | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/MobSpawnerCat.java b/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
||||||
|
index 3da1af0eac..7e48895778 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
||||||
|
@@ -77,8 +77,9 @@ public class MobSpawnerCat {
|
||||||
|
if (entitycat == null) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
+ entitycat.setPositionRotation(blockposition, 0.0F, 0.0F); // Purpur
|
||||||
|
entitycat.prepare(world, world.getDamageScaler(blockposition), EnumMobSpawn.NATURAL, (GroupDataEntity) null, (NBTTagCompound) null);
|
||||||
|
- entitycat.setPositionRotation(blockposition, 0.0F, 0.0F);
|
||||||
|
+ //entitycat.setPositionRotation(blockposition, 0.0F, 0.0F); // Purpur - move up - fixes non black cat types spawning inside swamp huts
|
||||||
|
world.addEntity(entitycat);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.24.0
|
||||||
|
|
||||||
Reference in New Issue
Block a user