Skip to content

Commit

Permalink
add missing dispenser behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC committed Sep 19, 2024
1 parent 3bccdd0 commit af1a54b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.ClipContext;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.DispenserBlock;
import net.minecraft.world.level.gameevent.GameEvent;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.HitResult;
Expand All @@ -32,6 +33,7 @@ public GTBoatItem(boolean hasChest, GTBoat.BoatType type, Item.Properties proper
super(properties);
this.hasChest = hasChest;
this.type = type;
DispenserBlock.registerBehavior(this, new GTBoatItemDispenseBehaviour(type, hasChest));
}

public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand hand) {
Expand Down

0 comments on commit af1a54b

Please sign in to comment.