Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Oct 8, 2024
1 parent 83d8eff commit 35bf457
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@Mixin(value = CraftInventoryView.class, remap = false)
public abstract class CraftInventoryViewMixin implements InventoryView {

@Shadow @Final @Mutable private CraftInventory viewing;
@Shadow @Final @Mutable private Inventory viewing;

@Inject(method = "<init>", at = @At("RETURN"))
private void arclight$validate(HumanEntity player, Inventory viewing, AbstractContainerMenu container, CallbackInfo ci) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.bukkit.craftbukkit.v.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v.inventory.view.CraftAnvilView;
import org.bukkit.event.inventory.PrepareAnvilEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.view.AnvilView;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand Down Expand Up @@ -72,7 +73,7 @@ public CraftAnvilView getBukkitView() {
return bukkitEntity;
}

CraftInventory inventory = new CraftInventoryAnvil(
var inventory = new CraftInventoryAnvil(
((IWorldPosCallableBridge) this.access).bridge$getLocation(), this.inputSlots, this.resultSlots);
bukkitEntity = new CraftAnvilView(((PlayerEntityBridge) this.player).bridge$getBukkitEntity(), inventory, (AnvilMenu) (Object) this);
return bukkitEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public CraftBeaconView getBukkitView() {
return bukkitEntity;
}

CraftInventory inventory = new CraftInventoryBeacon(this.beacon);
var inventory = new CraftInventoryBeacon(this.beacon);
bukkitEntity = new CraftBeaconView(((PlayerEntityBridge) this.playerInventory.player).bridge$getBukkitEntity(), inventory, (BeaconMenu) (Object) this);
return bukkitEntity;
}
Expand Down

0 comments on commit 35bf457

Please sign in to comment.