mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24e473018e | ||
|
|
d635a7a406 | ||
|
|
f82ed6358a |
No files matched your search
@@ -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:
|
||||
|
||||
+11
-7
@@ -1,14 +1,18 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
api('com.github.GTNewHorizons:ForestryMC:4.11.8: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.09.55.13: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')
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user