Skip to content

Commit

Permalink
Fix bad #1662, closes #1664.
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Feb 24, 2025
1 parent 5e217b1 commit 03cc2c8
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 107 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.izzel.arclight.common.mixin.vanilla.world.level.block.entity;

import io.izzel.arclight.common.mod.util.ArclightCaptures;
import io.izzel.arclight.mixin.Decorate;
import io.izzel.arclight.mixin.DecorationOps;
import io.izzel.arclight.mixin.Local;
Expand All @@ -17,11 +18,11 @@
public abstract class AbstractFurnaceBlockEntityMixin_Vanilla {

@Decorate(method = "burn", at = @At(value = "INVOKE", ordinal = 1, target = "Lnet/minecraft/core/NonNullList;get(I)Ljava/lang/Object;"))
private static <E> E arclight$furnaceSmelt(NonNullList<E> instance, int i, @Local(ordinal = 0) AbstractFurnaceBlockEntity blockEntity, @Local(ordinal = -1) ItemStack itemStack2, @Local(ordinal = -2) ItemStack itemStack1) throws Throwable {
private static <E> E arclight$furnaceSmelt(NonNullList<E> instance, int i, @Local(ordinal = -1) ItemStack itemStack2, @Local(ordinal = -2) ItemStack itemStack1) throws Throwable {
CraftItemStack source = CraftItemStack.asCraftMirror(itemStack1);
org.bukkit.inventory.ItemStack result = CraftItemStack.asBukkitCopy(itemStack2);

FurnaceSmeltEvent furnaceSmeltEvent = new FurnaceSmeltEvent(CraftBlock.at(blockEntity.getLevel(), blockEntity.getBlockPos()), source, result);
FurnaceSmeltEvent furnaceSmeltEvent = new FurnaceSmeltEvent(CraftBlock.at(ArclightCaptures.getTickingBlockEntity().getLevel(), ArclightCaptures.getTickingBlockEntity().getBlockPos()), source, result);
Bukkit.getPluginManager().callEvent(furnaceSmeltEvent);

if (furnaceSmeltEvent.isCancelled()) {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
"core.world.entity.monster.ZombieMixin_Fabric",
"core.world.entity.player.PlayerMixin_Fabric",
"core.world.entity.player.ServerPlayerMixin_Fabric",
"core.world.level.block.FireBlockMixin_Fabric",
"core.world.level.block.entity.AbstractFurnaceBlockEntityMixin_Fabric",
"core.world.level.block.entity.BrewingStandBlockEntityMixin_Fabric"
"core.world.level.block.FireBlockMixin_Fabric"
]
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"core.world.level.block.FireBlockMixin_Forge",
"core.world.level.block.TntBlockMixin_Forge",
"core.world.level.block.entity.AbstractFurnaceBlockEntityMixin_Forge",
"core.world.level.block.entity.BrewingStandBlockEntityMixin_Forge",
"core.world.level.block.entity.HopperBlockEntityMixin_Forge",
"core.world.level.block.state.BlockBehaviourMixin_Forge",
"core.world.level.levelgen.structure.templatesystem.StructureTemplateMixin_Forge",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"core.world.level.block.FireBlockMixin_NeoForge",
"core.world.level.block.TntBlockMixin_NeoForge",
"core.world.level.block.entity.AbstractFurnaceBlockEntityMixin_NeoForge",
"core.world.level.block.entity.BrewingStandBlockEntityMixin_NeoForge",
"core.world.level.block.state.BlockBehaviourMixin_Forge",
"core.world.level.levelgen.structure.templatesystem.StructureTemplateMixin_NeoForge",
"core.world.level.storage.loot.LootContextMixin_NeoForge",
Expand Down

0 comments on commit 03cc2c8

Please sign in to comment.