mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
#1233: Remove some old MC bug fixes now fixed in vanilla
By: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
This commit is contained in:
parent
06818793c7
commit
e00c85fd8c
2 changed files with 1 additions and 21 deletions
|
@ -42,15 +42,6 @@
|
||||||
this.onItemPickup(entityitem);
|
this.onItemPickup(entityitem);
|
||||||
this.setItemSlot(EnumItemSlot.MAINHAND, itemstack);
|
this.setItemSlot(EnumItemSlot.MAINHAND, itemstack);
|
||||||
this.setGuaranteedDrop(EnumItemSlot.MAINHAND);
|
this.setGuaranteedDrop(EnumItemSlot.MAINHAND);
|
||||||
@@ -389,7 +406,7 @@
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canUse() {
|
|
||||||
- return this.dolphin.gotFish() && this.dolphin.getAirSupply() >= 100;
|
|
||||||
+ return this.dolphin.gotFish() && this.dolphin.getAirSupply() >= 100 && this.dolphin.level().getWorld().canGenerateStructures(); // MC-151364, SPIGOT-5494: hangs if generate-structures=false
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@@ -489,7 +506,7 @@
|
@@ -489,7 +506,7 @@
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,17 +1,6 @@
|
||||||
--- a/net/minecraft/world/item/ItemCrossbow.java
|
--- a/net/minecraft/world/item/ItemCrossbow.java
|
||||||
+++ b/net/minecraft/world/item/ItemCrossbow.java
|
+++ b/net/minecraft/world/item/ItemCrossbow.java
|
||||||
@@ -113,6 +113,10 @@
|
@@ -236,11 +236,27 @@
|
||||||
if (itemstack1.isEmpty() && flag) {
|
|
||||||
itemstack1 = new ItemStack(Items.ARROW);
|
|
||||||
itemstack2 = itemstack1.copy();
|
|
||||||
+ // CraftBukkit start - SPIGOT-4870, MC-150847
|
|
||||||
+ } else if (itemstack1.isEmpty()) {
|
|
||||||
+ return false;
|
|
||||||
+ // CraftBukkit end
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!loadProjectile(entityliving, itemstack, itemstack1, k > 0, flag)) {
|
|
||||||
@@ -236,11 +240,27 @@
|
|
||||||
|
|
||||||
((IProjectile) object).shoot((double) vector3f.x(), (double) vector3f.y(), (double) vector3f.z(), f1, f2);
|
((IProjectile) object).shoot((double) vector3f.x(), (double) vector3f.y(), (double) vector3f.z(), f1, f2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue