2014-08-19 14:53:21 -05:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Byteflux <byte@byteflux.net>
|
2016-02-29 17:09:49 -06:00
|
|
|
Date: Tue, 1 Mar 2016 15:08:03 -0600
|
2014-08-19 14:53:21 -05:00
|
|
|
Subject: [PATCH] Remove invalid mob spawner tile entities
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
|
2020-05-06 05:48:49 -04:00
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
2014-08-19 14:53:21 -05:00
|
|
|
--- a/src/main/java/net/minecraft/server/Chunk.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
2018-07-14 21:53:17 -04:00
|
|
|
@@ -0,0 +0,0 @@ public class Chunk implements IChunkAccess {
|
2019-04-24 02:00:24 +01:00
|
|
|
}
|
|
|
|
|
2015-03-07 19:16:09 -06:00
|
|
|
// CraftBukkit start
|
2016-02-29 17:09:49 -06:00
|
|
|
+ // Paper start - Remove invalid mob spawner tile entities
|
2018-07-16 21:08:09 +01:00
|
|
|
+ } else if (tileentity instanceof TileEntityMobSpawner && !(getBlockData(blockposition.getX(), blockposition.getY(), blockposition.getZ()).getBlock() instanceof BlockMobSpawner)) {
|
2014-11-27 17:17:45 -08:00
|
|
|
+ this.tileEntities.remove(blockposition);
|
2016-02-29 17:09:49 -06:00
|
|
|
+ // Paper end
|
2014-08-19 14:53:21 -05:00
|
|
|
} else {
|
2014-11-27 17:17:45 -08:00
|
|
|
System.out.println("Attempted to place a tile entity (" + tileentity + ") at " + tileentity.position.getX() + "," + tileentity.position.getY() + "," + tileentity.position.getZ()
|
2018-07-14 21:53:17 -04:00
|
|
|
+ " (" + getType(blockposition) + ") where there was no entity tile!");
|