@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/inventory/ContainerBeacon.java
|
||||
+++ b/net/minecraft/world/inventory/ContainerBeacon.java
|
||||
@@ -11,6 +11,11 @@
|
||||
@@ -12,6 +12,11 @@
|
||||
import net.minecraft.world.level.World;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
public class ContainerBeacon extends Container {
|
||||
|
||||
private static final int PAYMENT_SLOT = 0;
|
||||
@@ -24,6 +29,10 @@
|
||||
@@ -26,6 +31,10 @@
|
||||
private final ContainerBeacon.SlotBeacon paymentSlot;
|
||||
private final ContainerAccess access;
|
||||
private final IContainerProperties beaconData;
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
public ContainerBeacon(int i, IInventory iinventory) {
|
||||
this(i, iinventory, new ContainerProperties(3), ContainerAccess.NULL);
|
||||
@@ -31,6 +40,7 @@
|
||||
@@ -33,6 +42,7 @@
|
||||
|
||||
public ContainerBeacon(int i, IInventory iinventory, IContainerProperties icontainerproperties, ContainerAccess containeraccess) {
|
||||
super(Containers.BEACON, i);
|
||||
@@ -31,7 +31,7 @@
|
||||
this.beacon = new InventorySubcontainer(1) {
|
||||
@Override
|
||||
public boolean canPlaceItem(int j, ItemStack itemstack) {
|
||||
@@ -80,6 +90,7 @@
|
||||
@@ -82,6 +92,7 @@
|
||||
|
||||
@Override
|
||||
public boolean stillValid(EntityHuman entityhuman) {
|
||||
@@ -39,7 +39,18 @@
|
||||
return stillValid(this.access, entityhuman, Blocks.BEACON);
|
||||
}
|
||||
|
||||
@@ -180,4 +191,17 @@
|
||||
@@ -163,8 +174,8 @@
|
||||
|
||||
public void updateEffects(Optional<MobEffectList> optional, Optional<MobEffectList> optional1) {
|
||||
if (this.paymentSlot.hasItem()) {
|
||||
- this.beaconData.set(1, encodeEffect((MobEffectList) optional.orElse((Object) null)));
|
||||
- this.beaconData.set(2, encodeEffect((MobEffectList) optional1.orElse((Object) null)));
|
||||
+ this.beaconData.set(1, encodeEffect((MobEffectList) optional.orElse(null))); // CraftBukkit - decompile error
|
||||
+ this.beaconData.set(2, encodeEffect((MobEffectList) optional1.orElse(null))); // CraftBukkit - decompile error
|
||||
this.paymentSlot.remove(1);
|
||||
this.access.execute(World::blockEntityChanged);
|
||||
}
|
||||
@@ -191,4 +202,17 @@
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user