SPIGOT-6833: Do not drop items into unrestricted world during world generation
This commit is contained in:
parent
4b5f9882cc
commit
748ea518b1
@ -1,5 +1,14 @@
|
||||
--- a/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
||||
+++ b/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
||||
@@ -200,7 +200,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);
|
||||
@@ -319,6 +319,13 @@
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user