Compare commits

..
54 Commits
Author SHA1 Message Date
Ruling-0 2ab98749cb Bump GT5-Unofficial to 5.99.99-mu60 2026-11-21 17:35:43 -06:00
Ruling-0 ca02e2d91f Merge remote-tracking branch 'origin/master' into mu 2026-11-21 15:50:44 -06:00
Armisael5 24e473018e Fix empowering bee not seeing nodes correctly (#71) 2026-11-20 09:40:45 -05:00
d635a7a406 Protect some calls that lead to loadChunk with blockExists (#53)
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: micvog <[email protected]>
2026-11-14 18:54:46 +01:00
UltraProdigy f82ed6358a ci: run build and test on release branches 2026-11-09 01:10:46 -05:00
Ruling-0 294e579aa7 Bump GT5-Unofficial to 5.99.99-mu57 2026-10-12 16:25:59 -05:00
Ruling-0 18f7074caa Bump GT5-Unofficial to 5.99.99-mu56 2026-10-12 15:04:37 -05:00
Ruling-0 fb96b5f764 Bump GT5-Unofficial to 5.99.99-mu54 2026-10-12 11:35:51 -05:00
Ruling-0 eedc659dbb Bump MaterialLib to 0.24.0-mu and GT5-Unofficial to 5.99.99-mu53 2026-10-11 18:25:28 -05:00
Ruling-0 a8a32c9763 Bump GT5-Unofficial to 5.99.99-mu52 2026-10-10 00:56:10 -05:00
Ruling-0 6ba6d066a2 Bump GT5-Unofficial to 5.99.99-mu51 2026-10-09 22:46:16 -05:00
Ruling-0 20ce9aa472 Bump GT5-Unofficial to 5.99.99-mu50 2026-10-09 21:19:31 -05:00
Ruling-0 65e3ad1871 Bump MaterialLib to 0.21.0-mu 2026-10-09 21:16:37 -05:00
Ruling-0 edfdc477eb Bump GT5-Unofficial to 5.99.99-mu49 2026-10-09 19:06:58 -05:00
Ruling-0 c782a9bf34 Bump MaterialLib to 0.20.0-mu 2026-10-09 19:02:58 -05:00
Ruling-0 8a6eb5068b Bump GT5-Unofficial to 5.99.99-mu41 and MaterialLib to 0.19.0-mu 2026-10-06 15:01:05 -05:00
Ruling-0 e6b536b05c Bump GT5-Unofficial to 5.99.99-mu36 2026-10-05 13:30:26 -05:00
Ruling-0 58eb38d7c1 Bump MaterialLib to 0.18.0-mu 2026-10-04 12:34:57 -05:00
Ruling-0 49617a2900 Bump MaterialLib to 0.17.0-mu 2026-10-04 12:15:58 -05:00
Ruling-0 5176a61f98 Bump MaterialLib to 0.16.0-mu 2026-10-04 02:48:27 -05:00
Ruling-0 44f8d4d90d Bump MaterialLib to 0.15.0-mu 2026-09-30 13:01:50 -05:00
Ruling-0 0fca525643 Bump GT5-Unofficial to 5.99.99-mu32 2026-09-30 11:49:01 -05:00
Ruling-0 67d259b365 Bump GT5-Unofficial to 5.99.99-mu31 2026-09-30 11:07:06 -05:00
Ruling-0 19221a6075 Bump MaterialLib to 0.14.0-mu 2026-09-30 11:03:29 -05:00
Ruling-0 8ace30decd Bump GT5-Unofficial to 5.99.99-mu30 2026-09-30 09:26:49 -05:00
Ruling-0 9beaf61993 Bump GT5-Unofficial to 5.99.99-mu27 2026-09-29 23:08:35 -05:00
Ruling-0 7f381a7729 Bump GT5-Unofficial to 5.99.99-mu26 2026-09-29 22:26:27 -05:00
Ruling-0 a8296f2ecf Bump GT5-Unofficial to 5.99.99-mu25 and MaterialLib to 0.13.0-mu 2026-09-29 16:57:34 -05:00
Ruling-0 90b36cca2a Bump GT5-Unofficial to 5.99.99-mu24 2026-09-29 11:04:50 -05:00
Ruling-0 94faecf80e Bump GT5-Unofficial to 5.99.99-mu23 2026-09-29 10:42:39 -05:00
Ruling-0 82249614d4 Bump GT5-Unofficial to 5.99.99-mu22 2026-09-29 08:40:08 -05:00
Ruling-0 e1b4c3073f Bump MaterialLib to 0.12.0-mu 2026-09-29 07:22:39 -05:00
Ruling-0 2775665493 Bump GT5-Unofficial to 5.99.99-mu21 2026-09-28 22:04:51 -05:00
Ruling-0 5fa28362b6 Bump GT5-Unofficial to 5.99.99-mu20 2026-09-28 15:46:37 -05:00
Ruling-0 e61f57e6f3 Bump GT5-Unofficial to 5.99.99-mu19 2026-09-28 15:27:59 -05:00
Ruling-0 354a09449c Bump GT5-Unofficial to 5.99.99-mu18 2026-09-28 14:12:05 -05:00
Ruling-0 11cad05353 Bump GT5-Unofficial to 5.99.99-mu17 2026-09-28 13:28:55 -05:00
Ruling-0 c917b9fae2 Bump GT5-Unofficial to 5.99.99-mu16 2026-09-28 11:43:53 -05:00
Ruling-0 4fff7eb524 Bump GT5-Unofficial to 5.99.99-mu15 2026-09-28 07:56:11 -05:00
Ruling-0 da4ced5fca Bump GT5-Unofficial to 5.99.99-mu14 2026-09-27 20:38:12 -05:00
Ruling-0 f970d0ce11 Bump GT5-Unofficial to 5.99.99-mu13 2026-09-27 19:04:21 -05:00
Ruling-0 b637b24d8b Bump GT5-Unofficial to 5.99.99-mu12 2026-09-27 16:44:29 -05:00
Ruling-0 d6ab1dc83a Bump MaterialLib to 0.11.0-mu 2026-09-22 09:53:59 -05:00
Ruling-0 b0ad29e234 Bump GT5-Unofficial to 5.99.99-mu11 2026-09-22 09:53:59 -05:00
Ruling-0 fc9d138798 Bump GT5-Unofficial to 5.99.99-mu10 2026-09-20 11:40:05 -05:00
Ruling-0 5575acbdaf Bump GT5-Unofficial to 5.99.99-mu9 2026-09-17 16:31:07 -05:00
Ruling-0 4d9a31f945 Bump GT5-Unofficial to 5.99.99-mu8 2026-09-16 16:03:39 -05:00
Ruling-0 0133560c6d Bump GT5-Unofficial to 5.99.99-mu7 2026-09-15 16:51:27 -05:00
Ruling-0 9976f0c995 Bump GT5-Unofficial to 5.99.99-mu6 2026-09-09 12:58:21 -05:00
Ruling-0 0b2a8fa3e9 Bump GT5-Unofficial to 5.99.99-mu5 and MaterialLib to 0.10.0-mu 2026-08-29 22:50:27 -05:00
Ruling-0 62cd1ff608 Doc and code style pass 2026-08-20 17:46:34 -05:00
Ruling-0 b743b909d3 Bump GT5-Unofficial to 5.99.99-mu4 2026-08-18 02:43:23 -05:00
Ruling-0 365b19a559 Bump MaterialLib to 0.9.0-mu 2026-08-18 00:30:46 -05:00
Ruling-0 2ba2286060 Update to MaterialLib system 2026-08-18 00:30:46 -05:00
5 changed files with 41 additions and 25 deletions

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ name: Build and test
on:
pull_request:
branches: [ master, main ]
branches: [ master, main, release/** ]
push:
branches: [ master, main ]
branches: [ master, main, release/** ]
jobs:
build-and-test:
+12 -7
View File
@@ -1,14 +1,19 @@
// Add your dependencies here
dependencies {
api('com.github.GTNewHorizons:ForestryMC:4.11.8:dev')
api('com.ruling_0:MaterialLib:0.24.0-mu:dev')
api('com.github.GTNewHorizons:ForestryMC:4.12.1:dev')
compileOnly('com.github.GTNewHorizons:BloodMagic:1.8.14:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.8.11:dev')
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.13.16-GTNH:api') {transitive = false}
compileOnly('com.github.GTNewHorizons:BloodMagic:1.10.0:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.9.0:dev')
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.14.1-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.54.265:dev')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.34-GTNH:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.99.99-mu60:dev')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.8.0-GTNH:dev')
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {transitive = false}
//runtimeOnlyNonPublishable('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:GT5-Unofficial:5.09.55.13:dev')
}
+1
View File
@@ -1,4 +1,5 @@
// Add any additional repositories for your dependencies here
repositories {
mavenLocal()
}
@@ -131,7 +131,11 @@ import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import gregtech.api.enums.Materials;
import com.ruling_0.materiallib.api.Material;
import com.ruling_0.materiallib.api.MaterialLibAPI;
import gregtech.api.enums.materials.Materials;
import gregtech.api.enums.materials.Shapes;
import magicbees.item.types.CombType;
import magicbees.item.types.DropType;
import magicbees.item.types.NuggetType;
@@ -260,12 +264,16 @@ public class BeeProductHelper {
INVISIBLE.addProduct(Config.combs.getStackForType(CombType.MUNDANE), 0.35f);
}
private static ItemStack getNugget(Material material) {
return MaterialLibAPI.getStack(material, Shapes.nugget, 1);
}
public static void initOreDictSProducts() {
boolean isGTNHCoreModLoaded = Config.isGTNHCoreModLoaded;
SILVER.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetSilver").size() > 0) {
SILVER.addSpecialty(
isGTNHCoreModLoaded ? Materials.Silver.getNuggets(1) : OreDictionary.getOres("nuggetSilver").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Silver) : OreDictionary.getOres("nuggetSilver").get(0),
0.16f);
} else {
SILVER.setInactive();
@@ -274,7 +282,7 @@ public class BeeProductHelper {
LEAD.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetLead").size() > 0) {
LEAD.addSpecialty(
isGTNHCoreModLoaded ? Materials.Lead.getNuggets(1) : OreDictionary.getOres("nuggetLead").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Lead) : OreDictionary.getOres("nuggetLead").get(0),
0.17f);
} else {
LEAD.setInactive();
@@ -291,7 +299,7 @@ public class BeeProductHelper {
TE_PLATINUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetPlatinum").size() > 0) {
TE_PLATINUM.addSpecialty(
isGTNHCoreModLoaded ? Materials.Platinum.getNuggets(1)
isGTNHCoreModLoaded ? getNugget(Materials.Platinum)
: OreDictionary.getOres("nuggetPlatinum").get(0),
0.18f);
} else {
@@ -301,7 +309,7 @@ public class BeeProductHelper {
TE_NICKEL.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetNickel").size() > 0) {
TE_NICKEL.addSpecialty(
isGTNHCoreModLoaded ? Materials.Nickel.getNuggets(1) : OreDictionary.getOres("nuggetNickel").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Nickel) : OreDictionary.getOres("nuggetNickel").get(0),
0.18f);
} else {
TE_NICKEL.setInactive();
@@ -310,7 +318,7 @@ public class BeeProductHelper {
ARDITE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetArdite").size() > 0) {
ARDITE.addSpecialty(
isGTNHCoreModLoaded ? Materials.Ardite.getNuggets(1) : OreDictionary.getOres("nuggetArdite").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Ardite) : OreDictionary.getOres("nuggetArdite").get(0),
0.18f);
} else {
ARDITE.setInactive();
@@ -319,7 +327,7 @@ public class BeeProductHelper {
COBALT.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetCobalt").size() > 0) {
COBALT.addSpecialty(
isGTNHCoreModLoaded ? Materials.Cobalt.getNuggets(1) : OreDictionary.getOres("nuggetCobalt").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Cobalt) : OreDictionary.getOres("nuggetCobalt").get(0),
0.18f);
} else {
COBALT.setInactive();
@@ -328,7 +336,7 @@ public class BeeProductHelper {
TE_BRONZE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetBronze").size() > 0) {
TE_BRONZE.addSpecialty(
isGTNHCoreModLoaded ? Materials.Bronze.getNuggets(1) : OreDictionary.getOres("nuggetBronze").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Bronze) : OreDictionary.getOres("nuggetBronze").get(0),
0.18f);
} else {
TE_BRONZE.setInactive();
@@ -337,7 +345,7 @@ public class BeeProductHelper {
TE_INVAR.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetInvar").size() > 0) {
TE_INVAR.addSpecialty(
isGTNHCoreModLoaded ? Materials.Invar.getNuggets(1) : OreDictionary.getOres("nuggetInvar").get(0),
isGTNHCoreModLoaded ? getNugget(Materials.Invar) : OreDictionary.getOres("nuggetInvar").get(0),
0.18f);
} else {
TE_INVAR.setInactive();
@@ -346,7 +354,7 @@ public class BeeProductHelper {
TE_ELECTRUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetElectrum").size() > 0) {
TE_ELECTRUM.addSpecialty(
isGTNHCoreModLoaded ? Materials.Electrum.getNuggets(1)
isGTNHCoreModLoaded ? getNugget(Materials.Electrum)
: OreDictionary.getOres("nuggetElectrum").get(0),
0.18f);
} else {
@@ -356,7 +364,7 @@ public class BeeProductHelper {
MANYULLYN.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
if (OreDictionary.getOres("nuggetManyullyn").size() > 0) {
MANYULLYN.addSpecialty(
isGTNHCoreModLoaded ? Materials.Manyullyn.getNuggets(1)
isGTNHCoreModLoaded ? getNugget(Materials.Manyullyn)
: OreDictionary.getOres("nuggetManyullyn").get(0),
0.18f);
} else {
@@ -50,14 +50,16 @@ public class BlockUtil {
public static List<Chunk> getChunksInSearchRange(World world, int xCoord, int zCoord, int searchRadius) {
List<Chunk> searchChunks = new ArrayList<Chunk>();
int chunkRange = (int) Math.ceil(searchRadius / 16.0);
int minChunkX = xCoord / 16 - chunkRange;
int maxChunkX = xCoord / 16 + chunkRange;
int minChunkZ = zCoord / 16 - chunkRange;
int maxChunkZ = zCoord / 16 + chunkRange;
int minChunkX = (xCoord - searchRadius) >> 4;
int maxChunkX = (xCoord + searchRadius) >> 4;
int minChunkZ = (zCoord - searchRadius) >> 4;
int maxChunkZ = (zCoord + searchRadius) >> 4;
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
if (!world.blockExists(chunkX << 4, 0, chunkZ << 4)) {
continue;
}
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
if (chunk != null) searchChunks.add(chunk);
}