mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-22 05:26:17 +00:00
20 lines
1.3 KiB
Diff
20 lines
1.3 KiB
Diff
--- a/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
+++ b/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
@@ -50,7 +50,7 @@
|
|
while (iterator.hasNext()) {
|
|
final ItemCombinerMenuSlotDefinition.b itemcombinermenuslotdefinition_b = (ItemCombinerMenuSlotDefinition.b) iterator.next();
|
|
|
|
- this.addSlot(new Slot(this, this.inputSlots, itemcombinermenuslotdefinition_b.slotIndex(), itemcombinermenuslotdefinition_b.x(), itemcombinermenuslotdefinition_b.y()) {
|
|
+ this.addSlot(new Slot(this.inputSlots, itemcombinermenuslotdefinition_b.slotIndex(), itemcombinermenuslotdefinition_b.x(), itemcombinermenuslotdefinition_b.y()) { // CraftBukkit - decompile error
|
|
@Override
|
|
public boolean mayPlace(ItemStack itemstack) {
|
|
return itemcombinermenuslotdefinition_b.mayPlace().test(itemstack);
|
|
@@ -110,6 +110,7 @@
|
|
|
|
@Override
|
|
public boolean stillValid(EntityHuman entityhuman) {
|
|
+ if (!this.checkReachable) return true; // CraftBukkit
|
|
return (Boolean) this.access.evaluate((world, blockposition) -> {
|
|
return !this.isValidBlock(world.getBlockState(blockposition)) ? false : entityhuman.canInteractWithBlock(blockposition, 4.0D);
|
|
}, true);
|