diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/server/level/RegionLimitedWorldAccess.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/server/level/RegionLimitedWorldAccess.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/server/level/RegionLimitedWorldAccess.patch b/patch-remap/og/net/minecraft/server/level/RegionLimitedWorldAccess.patch new file mode 100644 index 0000000000..b638902b8d --- /dev/null +++ b/patch-remap/og/net/minecraft/server/level/RegionLimitedWorldAccess.patch @@ -0,0 +1,25 @@ +--- a/net/minecraft/server/level/RegionLimitedWorldAccess.java ++++ b/net/minecraft/server/level/RegionLimitedWorldAccess.java +@@ -208,7 +208,7 @@ + if (iblockdata.isAir()) { + return false; + } else { +- if (flag) { ++ if (false) { // CraftBukkit - SPIGOT-6833: Do not drop during world generation + TileEntity tileentity = iblockdata.hasBlockEntity() ? this.getBlockEntity(blockposition) : null; + + Block.dropResources(iblockdata, this.level, blockposition, tileentity, entity, ItemStack.EMPTY); +@@ -327,6 +327,13 @@ + + @Override + public boolean addFreshEntity(Entity entity) { ++ // CraftBukkit start ++ return addFreshEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT); ++ } ++ ++ @Override ++ public boolean addFreshEntity(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) { ++ // CraftBukkit end + int i = SectionPosition.blockToSectionCoord(entity.getBlockX()); + int j = SectionPosition.blockToSectionCoord(entity.getBlockZ()); + |