mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Remove unnecessary AT
This commit is contained in:
parent
b501e56e80
commit
0360c9a5fa
@ -18,9 +18,6 @@ return value anymore and some dispense behaviors like equippable and
|
|||||||
regular items will not have a defined behavior in that map and might throw
|
regular items will not have a defined behavior in that map and might throw
|
||||||
a NPE in that case.
|
a NPE in that case.
|
||||||
|
|
||||||
== AT ==
|
|
||||||
public net.minecraft.world.level.block.DispenserBlock getDispenseMethod(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/core/dispenser/DispenseItemBehavior;
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/core/dispenser/BoatDispenseItemBehavior.java b/src/main/java/net/minecraft/core/dispenser/BoatDispenseItemBehavior.java
|
diff --git a/src/main/java/net/minecraft/core/dispenser/BoatDispenseItemBehavior.java b/src/main/java/net/minecraft/core/dispenser/BoatDispenseItemBehavior.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/core/dispenser/BoatDispenseItemBehavior.java
|
--- a/src/main/java/net/minecraft/core/dispenser/BoatDispenseItemBehavior.java
|
||||||
@ -291,7 +288,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
+ // Paper end - Fix NPE with equippable and items without behavior
|
+ // Paper end - Fix NPE with equippable and items without behavior
|
||||||
+
|
+
|
||||||
public DispenseItemBehavior getDispenseMethod(Level world, ItemStack stack) {
|
protected DispenseItemBehavior getDispenseMethod(Level world, ItemStack stack) {
|
||||||
if (!stack.isItemEnabled(world.enabledFeatures())) {
|
if (!stack.isItemEnabled(world.enabledFeatures())) {
|
||||||
return DispenserBlock.DEFAULT_BEHAVIOR;
|
return DispenserBlock.DEFAULT_BEHAVIOR;
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||||||
|
Loading…
Reference in New Issue
Block a user