Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
MC-151364, SPIGOT-5494: Feeding dolphin hangs if generate-structures=false
Dieser Commit ist enthalten in:
Ursprung
731e819c94
Commit
9820cd2db0
@ -21,6 +21,15 @@
|
||||
this.setSlot(EnumItemSlot.MAINHAND, itemstack);
|
||||
this.dropChanceHand[EnumItemSlot.MAINHAND.b()] = 2.0F;
|
||||
this.receive(entityitem, itemstack.getCount());
|
||||
@@ -317,7 +322,7 @@
|
||||
|
||||
@Override
|
||||
public boolean a() {
|
||||
- return this.a.eq() && this.a.getAirTicks() >= 100;
|
||||
+ return this.a.eq() && this.a.getAirTicks() >= 100 && this.a.world.getWorld().canGenerateStructures(); // MC-151364, SPIGOT-5494: hangs if generate-structures=false
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -425,7 +430,7 @@
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren