mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
From 6cef8b3a0a207fe01ddf73117cc3770203e8c01c 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] MC-147659 - Fix non black cats 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 68d37121f..318d051b0 100644
|
|
--- a/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
|
+++ b/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
|
@@ -84,8 +84,9 @@ public class MobSpawnerCat implements MobSpawner {
|
|
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.26.2
|
|
|