mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-02 04:25:26 +02:00
Part 2 of removing bad design patterns
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.gmail.nossr50.util.nbt;
|
||||
|
||||
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import net.minecraft.server.v1_13_R2.NBTBase;
|
||||
import net.minecraft.server.v1_13_R2.NBTList;
|
||||
import net.minecraft.server.v1_13_R2.NBTTagCompound;
|
||||
@@ -39,7 +38,7 @@ public class NBTManager {
|
||||
return CraftNBTTagConfigSerializer.deserialize(nbtString);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
mcMMO.p.getLogger().severe("mcMMO was unable parse the NBT string from your config! Double check that it is proper NBT!");
|
||||
pluginRef.getLogger().severe("mcMMO was unable parse the NBT string from your config! Double check that it is proper NBT!");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package com.gmail.nossr50.util.nbt;
|
||||
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import net.minecraft.server.v1_13_R2.NBTBase;
|
||||
|
||||
/**
|
||||
@@ -29,6 +28,6 @@ public class RawNBT {
|
||||
}
|
||||
|
||||
public NBTBase getNbtData() {
|
||||
return mcMMO.getNbtManager().constructNBT(nbtContents);
|
||||
return pluginRef.getNbtManager().constructNBT(nbtContents);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user