Slimefun

Slimefun

3M Downloads

mcMMO AbilityBuff bug

Rothes opened this issue ยท 4 comments

commented

๐Ÿ“ Description (REQUIRED)

When cargo transports a item, Slimefun doesn't check if the item has a AbilityBuff.
For example. We can keep the dig_speed enchantment from Super Breaker Skill like this:

๐Ÿ“‘ Steps to reproduce the Issue (REQUIRED)

  1. Activate Super Breaker Skill with a pickaxe
  2. Put the pickaxe in a item frame
  3. Wait for the skill to end
  4. Remove the pickaxe from the frame. Let it goes into a hopper.
  5. Transport the pickaxe into a Auto-Disenchanter by cargo.
  6. The dig_speed buff enchantment doesn't remove. Then just disenchant it to hold the enchantment.
  7. put the pickaxe and the enchanted_book in Auto-Enchanter.
  8. Repeat the operation. You can get unlimited enchantment level.

๐Ÿ’ก Expected behavior (REQUIRED)

run SkillUtils#removeAbilityBuff when transporting a item,
or handlering something in machine.

๐Ÿ“œ Server Log

None

๐Ÿ“‚ /error-reports/ Folder

None

๐Ÿงญ Environment (REQUIRED)

Tuinity git-Tuinity-"1b0d783" (MC: 1.16.5)
Slimefun DEV - 853 (git f4bded9)
Metrics-Module #21
Java 11

Installed Addons: (3)
SlimefunItemId v1.0
Residence v4.9.3.3
CMI v8.8.2.2

[mcMMO] Running version 2.1.184

commented

I think I will resolve this from mcMMO's point of view in this case.
mcMMO sanitizes tools when dropped, clicked or even when opening inventories.
It not doing that when using Item Frames seems like an oversight that needs to be patched.

commented

I think I will resolve this from mcMMO's point of view in this case.
mcMMO sanitizes tools when dropped, clicked or even when opening inventories.
It not doing that when using Item Frames seems like an oversight that needs to be patched.

Note that Infused Hopper or maybe other things can replace of the Item Frames.
There are many ways to get the pickaxe with the enchantment.
So I still think it should be fixed from us... maybe

commented

Yo. This patch fixes a part of it.
We need to prevent Slimefun items get the enchantment too.

commented

This has been fixed in the latest release of mcMMO.
If you find any other glitches, make a new issue with steps on how to reproduce it, this one has been resolved.