Skip to content

Commit

Permalink
Backport campfire sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Nov 11, 2022
1 parent 8fe3343 commit e8e7f0e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.block.entity.CampfireBlockEntity;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.util.math.BlockPos;
Expand Down Expand Up @@ -55,7 +54,7 @@ public void setSleepingTicker(BlockEntityTickInvoker sleepingTicker) {
method = "addItem",
at = @At(value = "INVOKE", target = "Lnet/minecraft/util/collection/DefaultedList;set(ILjava/lang/Object;)Ljava/lang/Object;")
)
private void wakeUpOnAddItem(Entity user, ItemStack stack, int cookTime, CallbackInfoReturnable<Boolean> cir) {
private void wakeUpOnAddItem(ItemStack item, int cookTime, CallbackInfoReturnable<Boolean> cir) {
this.wakeUpNow();
}

Expand Down

0 comments on commit e8e7f0e

Please sign in to comment.