GregTechCEu Modern

GregTechCEu Modern

6M Downloads

[Bug]: Power Unit deletes currently held item when the Chainsaw runs out of durability

juh9870 opened this issue ยท 0 comments

commented

Checked for existing issues

  • I have checked for existing issues, and have found none.

Tested latest version

  • I have checked that this occurs on the latest version.

GregTech CEu Version

v1.4.6

Minecraft Version

1.20.1

Recipe Viewer Installed

None

Environment

Singleplayer, Dedicated Server

Cross-Mod Interaction

No

Other Installed Mods

Tested on empty instance with no other mods installed

Expected Behavior

Power unit should appear in the slot where the chainsaw was previously.

Actual Behavior

If you switch to another hotbar slot while the chainsaw is chopping a tree, and the chainsaw runs out of durability in the process, the LV power unit will be placed in the currently selected hotbar slot, deleting any item that may be in it

Steps to Reproduce

Screenshots are from Monifactory, but this is reproducible on empty instance with only GTM

  1. Get chainsaw with almost no durability remaining (can use the following command in command block to get one)
/give @a gtceu:lv_bronze_chainsaw{Charge:100000L,DisallowContainerItem:0b,GT.Behaviours:{DisableShields:1b,HarvestIce:1b,TreeFelling:1b},GT.Tool:{AttackDamage:7.0f,AttackSpeed:-3.2f,Damage:254,HarvestLevel:2,MaxDamage:255,ToolSpeed:8.0f},HideFlags:2,MaxCharge:100000L}

image
2. Start breaking a large tree
3. Quickly switch to another slot holding an item
image
4. Observe the item getting deleted when the chainsaw breaks
image

Additional Information

No response