Compare commits

..
Author SHA1 Message Date
DreamMasterXXL 4c71e42dd6 bump version 2021-08-17 08:57:23 +02:00
Martin Robertz de793aa5fc Update build.gradle 2021-08-14 15:47:50 +02:00
Martin Robertz 58439c0936 Update build.gradle 2021-08-14 15:47:01 +02:00
Martin Robertz ef76ab40e3 Update gradle.properties 2021-08-14 15:43:26 +02:00
Martin Robertz d2a3b91fe0 Merge pull request #4 from D-Cysteine/1.7.10-krypt
Update to latest Forestry API
2021-08-14 15:41:30 +02:00
D-Cysteine a370c61948 Update to latest Forestry API 2021-08-12 20:54:58 -06:00
DreamMasterXXL 04ea5e8862 bump version 2020-12-03 20:37:56 +01:00
Martin Robertz b411fec0c1 Merge pull request #3 from KiloJoel/magnetFix
items go lower and don't move when close
2020-11-22 21:20:48 +01:00
KiloJoel 82368a06bf items go lower and don't move when close 2020-11-22 20:08:47 +00:00
5 changed files with 12 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ buildscript {
repositories {
maven {
name = "forestry"
url = "http://maven.ic2.player.to/"
url = "http://downloads.gtnewhorizons.com/Mods_for_Jenkins/"
}
ivy {
name "Thaumcraft"
@@ -92,4 +92,4 @@ artifacts {
}
task fullBuild(dependsOn: ['build', 'deobfJar']) {
}
}
+2 -2
View File
@@ -1,8 +1,8 @@
version_major=2
version_minor=5
version_rev=4-GTNH
version_rev=7-GTNH
version_forestry=4.2.+
version_forestry=4.4.0.0
version_botania=r1.8-248
version_baubles=1.0.1.10
version_thaumcraft=4.2.3.5
@@ -2,6 +2,7 @@ package magicbees.bees;
import net.minecraft.world.World;
import forestry.api.core.IClimateProvider;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutationCondition;
@@ -28,7 +29,7 @@ public class MoonPhaseMutationBonus implements IMutationCondition {
}
@Override
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1) {
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1, IClimateProvider climate) {
if (MoonPhase.getMoonPhase(world).isBetween(this.moonPhaseStart, this.moonPhaseEnd)) {
return this.mutationBonus;
}
@@ -2,6 +2,7 @@ package magicbees.bees;
import net.minecraft.world.World;
import forestry.api.core.IClimateProvider;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutationCondition;
@@ -24,7 +25,7 @@ public class MoonPhaseMutationRestriction implements IMutationCondition {
}
@Override
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1) {
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1, IClimateProvider climate) {
if (MoonPhase.getMoonPhase(world).isBetween(this.moonPhaseStart, this.moonPhaseEnd)) {
return 1;
}
@@ -184,10 +184,13 @@ public class ItemMysteriousMagnet extends Item implements IBauble {
for (EntityItem e : list) {
if (e.age >= 10) {
double x = player.posX - e.posX;
double y = player.posY - e.posY;
double y = player.posY - e.posY - 1.f;
double z = player.posZ - e.posZ;
double length = Math.sqrt(x * x + y * y + z * z) * 2;
if (length < 1.2f)
continue;
x = x / length + player.motionX / 2;
y = y / length + player.motionY / 2;