mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: 840e72091 [CI-SKIP] [Auto] Rebuild Patches a33232d4a Add beacon activation and deactivation events (#5121) bc7ea673a Add internal channel initialization listeners (#5557) b28ad17ac Check for world change in MoveEvent API methods 3095c7592 [Auto] Updated Upstream (CraftBukkit) f56989c97 Add RespawnFlags to PlayerRespawnEvent (#5533) 7579c2667 Add more API to PlayerMoveEvent (#5553)
22 lines
1.3 KiB
Diff
22 lines
1.3 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/world/entity/npc/MobSpawnerCat.java b/src/main/java/net/minecraft/world/entity/npc/MobSpawnerCat.java
|
|
index 2f54c26151c049df9d071c887dd33e48df041437..5d0da07970bfe304debe244e5df39981f90161f6 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/npc/MobSpawnerCat.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/npc/MobSpawnerCat.java
|
|
@@ -98,8 +98,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;
|
|
}
|