mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Add backwards compatibility in tool NBT
This commit is contained in:
parent
c190863785
commit
b79b499b21
@ -464,7 +464,7 @@ public class ItemToolAbility extends ItemTool implements IDepthRockTool, IGUIPro
|
|||||||
public Configuration getConfiguration(ItemStack stack) {
|
public Configuration getConfiguration(ItemStack stack) {
|
||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
|
|
||||||
if(!stack.hasTagCompound()) {
|
if(!stack.hasTagCompound() || !stack.stackTagCompound.hasKey("ability") || !stack.stackTagCompound.hasKey("abilityPresets")) {
|
||||||
config.reset(availableAbilities);
|
config.reset(availableAbilities);
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user