mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Fix NEP when read cell config (#128)
This commit is contained in:
1 parent
3aad4a42f9
commit
883cd2926d
2 files changed
+9
-10
No files matched your search
+7
-7
@@ -1,14 +1,14 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.91-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.93-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.12:dev")
|
||||
implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-900-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-913-GTNH:dev")
|
||||
implementation("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")
|
||||
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:AspectRecipeIndex:1.0.14:dev")
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:AspectRecipeIndex:1.0.16:dev")
|
||||
compileOnly(rfg.deobf("curse.maven:thaumcraft-nei-plugin-225095:2241913")) { transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.19.22:dev") { transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.19.23:dev") { transitive = false }
|
||||
compileOnly("curse.maven:computercraft-67504:2269339") { transitive = false }
|
||||
compileOnly("curse.maven:cofh-lib-220333:2388748") { transitive = false }
|
||||
compileOnly("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") { transitive = false }
|
||||
@@ -17,8 +17,8 @@ dependencies {
|
||||
|
||||
compileOnly("org.jetbrains:annotations:26.0.2")
|
||||
|
||||
runtimeOnlyNonPublishable('com.github.GTNewHorizons:GTNHLib:0.9.52:dev')
|
||||
runtimeOnly("com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev")
|
||||
runtimeOnlyNonPublishable("com.github.GTNewHorizons:waila:1.19.22:dev")
|
||||
runtimeOnlyNonPublishable('com.github.GTNewHorizons:GTNHLib:0.9.54:dev')
|
||||
runtimeOnly("com.github.GTNewHorizons:Baubles-Expanded:2.2.13-GTNH:dev")
|
||||
runtimeOnlyNonPublishable("com.github.GTNewHorizons:waila:1.19.23:dev")
|
||||
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:ExtraCells2:2.5.35:dev') { transitive = false }
|
||||
}
|
||||
@@ -19,12 +19,11 @@ public class EssentiaCellConfig extends CellConfig {
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound data, String name) {
|
||||
NBTTagCompound tag = this.is.getTagCompound();
|
||||
|
||||
// Migrate from old data
|
||||
if (tag.hasKey(NBT_PARTITION_KEY)) {
|
||||
if (data != null && data.hasKey(NBT_PARTITION_KEY)) {
|
||||
// Get the partition tag
|
||||
NBTTagCompound partitionData = tag.getCompoundTag(NBT_PARTITION_KEY);
|
||||
NBTTagCompound partitionData = data.getCompoundTag(NBT_PARTITION_KEY);
|
||||
|
||||
// Get the partition count
|
||||
int partitionCount = partitionData.getInteger(NBT_PARTITION_COUNT_KEY);
|
||||
|
||||
Reference in new issue
Block a user