2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
|
|
+++ b/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
2024-04-24 01:15:00 +10:00
|
|
|
@@ -47,7 +47,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);
|
2023-03-15 03:30:00 +11:00
|
|
|
@@ -124,6 +124,7 @@
|
2020-06-25 10:00:00 +10:00
|
|
|
|
|
|
|
@Override
|
2021-11-22 09:00:00 +11:00
|
|
|
public boolean stillValid(EntityHuman entityhuman) {
|
2020-06-25 10:00:00 +10:00
|
|
|
+ if (!this.checkReachable) return true; // CraftBukkit
|
2021-11-22 09:00:00 +11:00
|
|
|
return (Boolean) this.access.evaluate((world, blockposition) -> {
|
2024-04-24 01:15:00 +10:00
|
|
|
return !this.isValidBlock(world.getBlockState(blockposition)) ? false : entityhuman.canInteractWithBlock(blockposition, 4.0D);
|
2020-06-25 10:00:00 +10:00
|
|
|
}, true);
|