mirror of https://github.com/YatopiaMC/Yatopia.git
22 lines
1.2 KiB
Diff
22 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 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
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MobSpawnerCat.java b/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
|
index 5a0f8779672a9e34f6970045361630ab5af3990b..25bb494350cd771166a78a7b14726cee8f01b02e 100644
|
|
--- a/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
|
+++ b/src/main/java/net/minecraft/server/MobSpawnerCat.java
|
|
@@ -80,8 +80,9 @@ public class MobSpawnerCat implements MobSpawner {
|
|
if (entitycat == null) {
|
|
return 0;
|
|
} else {
|
|
+ entitycat.setPositionRotation(blockposition, 0.0F, 0.0F); // Purpur
|
|
entitycat.prepare(worldserver, worldserver.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
|
|
worldserver.addAllEntities(entitycat);
|
|
return 1;
|
|
}
|