Comments (5)
I am having this same issue!
from mcmmo.
After checking the discord, there were discussions that the issue may not occur with regular Spigot, and only occurs with Paper.
I have tested it with 1.21 Spigot, and Super Breaker works just fine. This points the issue towards Paper.
from mcmmo.
Could this issue be because Paper now by default is Mojang mapped?
I have solved the issue by changing the functions like initEfficiency()
Instead of having the for loop:
for (Enchantment enchantment : Registry.ENCHANTMENT) {
if (enchantment.getKey().getKey().equalsIgnoreCase("EFFICIENCY")
|| enchantment.getKey().getKey().equalsIgnoreCase("DIG_SPEED")
|| enchantment.getName().equalsIgnoreCase("EFFICIENCY")
|| enchantment.getName().equalsIgnoreCase("DIG_SPEED")) {
return enchantment;
}
}
I replaced it with the following:
if (Registry.ENCHANTMENT.get(NamespacedKey.minecraft("efficiency")) != null)
{
return Registry.ENCHANTMENT.get(NamespacedKey.minecraft("efficiency"));
}
from mcmmo.
I don't think Paper being Mojang mapped has anything in particular to do with this, but I'm not certain of it either. In mcMMO we don't really use any NMS, so the mappings shouldn't affect us. I'm looking into this issue, which may be a Paper bug, or may be something I need to change on my end.
from mcmmo.
Could this issue be because Paper now by default is Mojang mapped? I have solved the issue by changing the functions like
initEfficiency()
Instead of having the for loop:
for (Enchantment enchantment : Registry.ENCHANTMENT) { if (enchantment.getKey().getKey().equalsIgnoreCase("EFFICIENCY") || enchantment.getKey().getKey().equalsIgnoreCase("DIG_SPEED") || enchantment.getName().equalsIgnoreCase("EFFICIENCY") || enchantment.getName().equalsIgnoreCase("DIG_SPEED")) { return enchantment; } }I replaced it with the following:
if (Registry.ENCHANTMENT.get(NamespacedKey.minecraft("efficiency")) != null) { return Registry.ENCHANTMENT.get(NamespacedKey.minecraft("efficiency")); }
Thanks for this info, I was able to come up with a workaround
from mcmmo.
Related Issues (20)
- Chimera Wing Issues
- Hoppers and custom brewing ingredients.
- Player can't get Alchemy exp on mcMMO 2.2.017 (Paper 1.20.6) HOT 1
- Option to disable Blast mining "Silk touch" on mob spawners
- Could not pass event EntityDamageByEntityEvent to mcMMO v2.2.017
- Acrobatics (% of dodge error HOT 2
- Acrobatics (dodge skill not scaling correctly) HOT 2
- Unarmed damage does not benefit from vanilla minecraft crits HOT 2
- MCMMO skills being blocked by anticheat HOT 4
- (some)Placeholders are broken HOT 1
- Massive console spam due to potion errors HOT 11
- mcMMO disabled - Recipe must have non-AIR result HOT 6
- Inconsistent XP Yield for Block Conversions
- Alchemy is way to easy to level now
- Spam the console too much about health limit errors HOT 2
- Issue #5052 still present and affects additional blocks HOT 2
- Double drops not working?
- 1.21.1 Folia Not loaded
- Call of the wild pet dupe glitch
- Alchemy doesn't work for bedrock players
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcmmo.