mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1ce2c362d | ||
|
|
0c83842f04 |
No files matched your search
+5
-5
@@ -1,14 +1,14 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
compile('com.github.GTNewHorizons:ForestryMC:4.9.7:dev')
|
||||
compile('com.github.GTNewHorizons:ForestryMC:4.8.9:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.6.2:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.6.1:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.5.3:dev')
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.5.4:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.11.3-GTNH:api') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.10.13-GTNH:api') {transitive = false}
|
||||
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.64:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.166:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.6.10-GTNH:dev')
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.23'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.22'
|
||||
}
|
||||
|
||||
|
||||
@@ -81,11 +81,12 @@ public class MagicApiaryInventory implements IApiaryInventory {
|
||||
}
|
||||
|
||||
public int[] getAccessibleSlotsFromSide(int side) {
|
||||
int[] slots = new int[SLOT_PRODUCTS_COUNT + 2];
|
||||
slots[0] = SLOT_QUEEN;
|
||||
slots[1] = SLOT_DRONE;
|
||||
if (side == 0 || side == 1) {
|
||||
return new int[] { SLOT_QUEEN, SLOT_DRONE };
|
||||
}
|
||||
int[] slots = new int[SLOT_PRODUCTS_COUNT];
|
||||
for (int i = 0, slot = SLOT_PRODUCTS_START; i < SLOT_PRODUCTS_COUNT; ++i, ++slot) {
|
||||
slots[i + 2] = slot;
|
||||
slots[i] = slot;
|
||||
}
|
||||
return slots;
|
||||
}
|
||||
@@ -100,7 +101,7 @@ public class MagicApiaryInventory implements IApiaryInventory {
|
||||
}
|
||||
|
||||
public boolean canExtractItem(int slot, ItemStack itemStack, int side) {
|
||||
return slot >= SLOT_PRODUCTS_START && slot <= SLOT_PRODUCTS_START + SLOT_PRODUCTS_COUNT;
|
||||
return slot >= SLOT_FRAME_START && slot <= SLOT_FRAME_START + 2;
|
||||
}
|
||||
|
||||
public int getInventoryStackLimit() {
|
||||
|
||||
@@ -15,7 +15,6 @@ import forestry.api.apiculture.IBeeGenome;
|
||||
import forestry.api.apiculture.IBeeHousing;
|
||||
import forestry.api.apiculture.IBeeModifier;
|
||||
import forestry.api.apiculture.IBeekeepingLogic;
|
||||
import forestry.api.apiculture.IBeekeepingMode;
|
||||
import forestry.apiculture.genetics.BeeGenome;
|
||||
import magicbees.bees.BeeManager;
|
||||
import magicbees.bees.BeeSpecies;
|
||||
@@ -92,16 +91,8 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
|
||||
}
|
||||
|
||||
protected int getProductionMultiplier(IBeeModifier modifier, IBee queen, TileEntity te) {
|
||||
IBeekeepingMode mode = BeeManager.beeRoot.getBeekeepingMode(te.getWorldObj());
|
||||
|
||||
IBeeGenome genome = queen.getGenome();
|
||||
float genomeSpeed = genome.getSpeed();
|
||||
|
||||
float productionMultiplier = modifier.getProductionModifier(genome, 1.0F);
|
||||
productionMultiplier += mode != null ? mode.getBeeModifier().getProductionModifier(genome, productionMultiplier)
|
||||
: 0.0F;
|
||||
productionMultiplier += genomeSpeed;
|
||||
|
||||
IBeeGenome queenGenome = queen.getGenome();
|
||||
float productionMultiplier = modifier.getProductionModifier(queenGenome, 1.0F);
|
||||
float minimum = Math.max(productionMultiplier, 1.0F);
|
||||
return (int) Math.ceil(minimum);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user