mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-15 17:44:52 +00:00
remove queen aging
This commit is contained in:
1 parent
ae736770fb
commit
906b97064e
2 files changed
+2
-25
No files matched your search
+2
-2
@@ -5,9 +5,9 @@ dependencies {
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.4.3:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.4.0:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Baubles:1.0.3:dev') {transitive = false}
|
||||
compile('com.github.GTNewHorizons:Baubles:1.0.3:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.10.3-GTNH:api') {transitive = false}
|
||||
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||
compile('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.101:dev') { transitive = false }
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package magicbees.tileentity;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Objects;
|
||||
|
||||
import forestry.api.apiculture.*;
|
||||
@@ -63,10 +62,6 @@ public class TileEntityPhialingCabinet extends TileEntity implements IAspectCont
|
||||
* Math.max(productionMultiplier, 1.0F));
|
||||
|
||||
addToContainer(aspect, amount);
|
||||
|
||||
try {
|
||||
drainQueen(beeHousing, beekeepingLogic, modifier, queen);
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
}
|
||||
} catch (Exception ignored) {}
|
||||
@@ -76,24 +71,6 @@ public class TileEntityPhialingCabinet extends TileEntity implements IAspectCont
|
||||
increment++;
|
||||
}
|
||||
|
||||
private void drainQueen(IBeeHousing housing, IBeekeepingLogic beekeepingLogic, IBeeModifier modifier, IBee queen) throws NoSuchFieldException, IllegalAccessException {
|
||||
float lifespanModifier = modifier.getLifespanModifier(queen.getGenome(), queen.getMate(), 1.0f);
|
||||
queen.age(housing.getWorld(), lifespanModifier);
|
||||
|
||||
// Write the changed queen back into the item stack.
|
||||
NBTTagCompound nbttagcompound = new NBTTagCompound();
|
||||
queen.writeToNBT(nbttagcompound);
|
||||
housing.getBeeInventory().getQueen().setTagCompound(nbttagcompound);
|
||||
|
||||
Field beeProgress = beekeepingLogic.getClass().getDeclaredField("beeProgress");
|
||||
beeProgress.setAccessible(true);
|
||||
Field beeProgressMax = beekeepingLogic.getClass().getDeclaredField("beeProgressMax");
|
||||
beeProgressMax.setAccessible(true);
|
||||
|
||||
beeProgress.set(beekeepingLogic, queen.getHealth());
|
||||
beeProgressMax.set(beekeepingLogic, queen.getMaxHealth());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AspectList getAspects() {
|
||||
return this.essentia;
|
||||
|
||||
Reference in new issue
Block a user