mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 11:05:13 +01:00
f8db65033c
By: md_5 <git@md-5.net>
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
--- a/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
|
+++ b/net/minecraft/server/level/RegionLimitedWorldAccess.java
|
|
@@ -207,7 +207,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);
|
|
@@ -326,6 +326,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());
|
|
|