Skip to content

Commit

Permalink
Fix issue #96
Browse files Browse the repository at this point in the history
Signed-off-by: Noaaan <noaaan@hotmail.com>
  • Loading branch information
Noaaan committed Feb 19, 2023
1 parent fc76bd1 commit 96a812c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEnt

if (fuelDefinition.hasReturnType() && controller.canAddFuel(fuelDefinition.fuel())) {
if (!player.getAbilities().creativeMode) {
player.setStackInHand(hand, new ItemStack(fuelDefinition.returnType()));
player.getStackInHand(hand).decrement(1);
player.getInventory().offerOrDrop(new ItemStack(fuelDefinition.returnType()));
}
controller.addFuel(fuelDefinition.fuel());
} else {
Expand Down

0 comments on commit 96a812c

Please sign in to comment.