mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 14:34:44 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aae90342e5 | ||
|
|
0d13cd0993 | ||
|
|
1ed50ed660 | ||
|
|
f38854d65e | ||
|
|
53d085d292 |
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:
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ dependencies {
|
||||
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('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.347:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.54.265:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.34-GTNH:dev')
|
||||
}
|
||||
|
||||
@@ -45,14 +45,14 @@ public class ItemWax extends Item {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(int meta) {
|
||||
return (WaxType.values()[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
|
||||
return (WaxType.VALUES[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||
for (WaxType type : WaxType.values()) {
|
||||
for (WaxType type : WaxType.VALUES) {
|
||||
list.add(this.getStackForType(type));
|
||||
}
|
||||
}
|
||||
@@ -62,14 +62,14 @@ public class ItemWax extends Item {
|
||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||
int colour = 0xffffff;
|
||||
int meta = stack.getItemDamage();
|
||||
if (meta >= 0 && meta < WaxType.values().length) {
|
||||
colour = WaxType.values()[meta].colour;
|
||||
if (meta >= 0 && meta < WaxType.VALUES.length) {
|
||||
colour = WaxType.VALUES[meta].colour;
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(ItemStack stack) {
|
||||
return WaxType.values()[stack.getItemDamage()].getName();
|
||||
return WaxType.VALUES[stack.getItemDamage()].getName();
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,9 @@ public enum WaxType {
|
||||
SOUL("soul", false, 0x967C63),
|
||||
AMNESIC("amnesic", true, 0x856DFF);
|
||||
|
||||
private WaxType(String n, boolean sp, int c) {
|
||||
public static final WaxType[] VALUES = values();
|
||||
|
||||
WaxType(String n, boolean sp, int c) {
|
||||
this.name = n;
|
||||
this.sparkly = sp;
|
||||
this.colour = c;
|
||||
|
||||
@@ -58,6 +58,9 @@ public class BlockUtil {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCo
|
||||
MTEIndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
|
||||
int housingProductionMultiplier = super.getProductionMultiplier(modifier, queen, te);
|
||||
return industrialApiary != null
|
||||
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.mSpeed))
|
||||
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.getSpeed()))
|
||||
: housingProductionMultiplier;
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ moon.new=New Moon
|
||||
|
||||
#Backpack
|
||||
item.backpack.thaumaturgeT1.name=Thaumaturge's Backpack
|
||||
item.backpack.thaumaturgeT2.name=Thaumaturge's Backpack
|
||||
item.backpack.thaumaturgeT2.name=Thaumaturge's Woven Backpack
|
||||
backpack.thaumaturge=Thaumaturge's Backpack
|
||||
|
||||
#Itemgroups
|
||||
|
||||
Reference in new issue
Block a user