Skip to content

Commit

Permalink
refactor: remove unused symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Aug 11, 2024
1 parent 0b3e3fd commit 69ec3ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 2 additions & 3 deletions include/bedrock/world/level/block/actor/furnace_block_actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@

class FurnaceBlockActor {
public:
ENDSTONE_HOOK static float getItemBurnDuration(class Item const& item, float burn_interval);
ENDSTONE_HOOK static float getBurnDuration(class ItemStackBase const& item_instance, float burn_interval);
};
ENDSTONE_HOOK static float getBurnDuration(class ItemStackBase const &item_instance, float burn_interval);
};
2 changes: 0 additions & 2 deletions python/src/endstone/_internal/symbols.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ version = "1.21.3"
# CreativeItemRegistry
"?forEachCreativeItemInstance@CreativeItemRegistry@@SAXV?$function@$$A6A_NAEAVItemInstance@@@Z@std@@@Z" = 28186272
# FurnaceBlockActor
"?getItemBurnDuration@FurnaceBlockActor@@SAMAEBVItem@@M@Z" = 36389408
"?getBurnDuration@FurnaceBlockActor@@SAMAEBVItemStackBase@@M@Z" = 36383856
# ItemStack
"??0ItemStack@@QEAA@AEBVItem@@HHPEBVCompoundTag@@@Z" = 28608928
Expand Down Expand Up @@ -134,7 +133,6 @@ version = "1.21.3"
# CreativeItemRegistry
"_ZN20CreativeItemRegistry27forEachCreativeItemInstanceENSt3__18functionIFbR12ItemInstanceEEE" = 120635696
# FurnaceBlockActor
"_ZN17FurnaceBlockActor19getItemBurnDurationERK4Itemf" = 129168032
"_ZN17FurnaceBlockActor15getBurnDurationERK13ItemStackBasef" = 129167840
# ItemStack
"_ZN9ItemStackC2ERK4ItemiiPK11CompoundTag" = 120110496
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@

#include "endstone/detail/hook.h"

float FurnaceBlockActor::getItemBurnDuration(Item const& item, float burn_interval)
{
return ENDSTONE_HOOK_CALL_ORIGINAL(&FurnaceBlockActor::getItemBurnDuration, item, burn_interval);
}

float FurnaceBlockActor::getBurnDuration(ItemStackBase const& item_instance, float burn_interval)
float FurnaceBlockActor::getBurnDuration(ItemStackBase const &item_instance, float burn_interval)
{
return ENDSTONE_HOOK_CALL_ORIGINAL(&FurnaceBlockActor::getBurnDuration, item_instance, burn_interval);
}
}

0 comments on commit 69ec3ad

Please sign in to comment.