Skip to content

Commit

Permalink
Fix composter block setting bukkit owner twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr committed Feb 2, 2025
1 parent 8927091 commit 0a2fb44
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,14 @@
}

@Override
@@ -381,9 +_,11 @@
@@ -381,6 +_,7 @@

public InputContainer(BlockState state, LevelAccessor level, BlockPos pos) {
super(1);
+ this.bukkitOwner = new org.bukkit.craftbukkit.inventory.CraftBlockInventoryHolder(level, pos, this); // CraftBukkit
this.state = state;
this.level = level;
this.pos = pos;
+ this.bukkitOwner = new org.bukkit.craftbukkit.inventory.CraftBlockInventoryHolder(level, pos, this); // CraftBukkit
}

@Override
@@ -412,6 +_,11 @@
if (!item.isEmpty()) {
this.changed = true;
Expand All @@ -130,6 +126,14 @@
this.level.levelEvent(1500, this.pos, blockState != this.state ? 1 : 0);
this.removeItemNoUpdate(0);
}
@@ -426,6 +_,7 @@

public OutputContainer(BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) {
super(stack);
+ this.bukkitOwner = new org.bukkit.craftbukkit.inventory.CraftBlockInventoryHolder(level, pos, this); // Paper
this.state = state;
this.level = level;
this.pos = pos;
@@ -453,8 +_,15 @@

@Override
Expand Down

0 comments on commit 0a2fb44

Please sign in to comment.