2014-08-19 21:53:21 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Byteflux <byte@byteflux.net>
|
2016-03-01 00:09:49 +01:00
|
|
|
Date: Tue, 1 Mar 2016 15:08:03 -0600
|
2014-08-19 21:53:21 +02: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
|
2017-03-25 06:22:02 +01:00
|
|
|
index bd3b16025..1c0108ef1 100644
|
2014-08-19 21:53:21 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/Chunk.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
|
|
|
@@ -0,0 +0,0 @@ public class Chunk {
|
2016-11-17 03:23:38 +01:00
|
|
|
tileentity.A();
|
2015-03-08 02:16:09 +01:00
|
|
|
this.tileEntities.put(blockposition, tileentity);
|
|
|
|
// CraftBukkit start
|
2016-03-01 00:09:49 +01:00
|
|
|
+ // Paper start - Remove invalid mob spawner tile entities
|
|
|
|
+ } else if (tileentity instanceof TileEntityMobSpawner && org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(getBlockData(blockposition).getBlock()) != org.bukkit.Material.MOB_SPAWNER) {
|
2014-11-28 02:17:45 +01:00
|
|
|
+ this.tileEntities.remove(blockposition);
|
2016-03-01 00:09:49 +01:00
|
|
|
+ // Paper end
|
2014-08-19 21:53:21 +02:00
|
|
|
} else {
|
2014-11-28 02:17:45 +01:00
|
|
|
System.out.println("Attempted to place a tile entity (" + tileentity + ") at " + tileentity.position.getX() + "," + tileentity.position.getY() + "," + tileentity.position.getZ()
|
2016-03-01 00:09:49 +01:00
|
|
|
+ " (" + org.bukkit.craftbukkit.util.CraftMagicNumbers.getMaterial(getBlockData(blockposition).getBlock()) + ") where there was no entity tile!");
|
2015-09-13 02:57:39 +02:00
|
|
|
--
|