mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd50df3abd | ||
|
|
421f07203e | ||
|
|
8b41b92359 | ||
|
|
a64bd5f437 | ||
|
|
fb43f46bb8 | ||
|
|
fd531035ab | ||
|
|
0c4239c954 |
No files matched your search
+2
-2
@@ -3,11 +3,11 @@
|
||||
dependencies {
|
||||
compile('com.github.GTNewHorizons:ForestryMC:4.8.2:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.5.0:dev')
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.5.1:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.5.1:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.10.5-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.45.41:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.50:dev')
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ public class BlockApimancersDrainer extends BlockContainer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7,
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7,
|
||||
float par8, float par9) {
|
||||
if (world.isRemote) {
|
||||
return false;
|
||||
} else {
|
||||
TileEntity tile = world.getTileEntity(x, y, z);
|
||||
if (tile instanceof TileEntityApimancersDrainerCommon) {
|
||||
if (tile instanceof TileEntityApimancersDrainerCommon && side != 0) {
|
||||
ItemStack tItemStack = player.getHeldItem();
|
||||
if (tItemStack != null) {
|
||||
Item tItem = tItemStack.getItem();
|
||||
@@ -71,7 +71,9 @@ public class BlockApimancersDrainer extends BlockContainer {
|
||||
}
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
return true;
|
||||
} else return false;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -165,6 +165,7 @@ public class Config {
|
||||
|
||||
// ---- Loaded mods -----------------------------------------
|
||||
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
|
||||
public static boolean isGTNHCoreModLoaded = Loader.isModLoaded("gregtech") && Loader.isModLoaded("dreamcraft");
|
||||
|
||||
public Config(File configFile) {
|
||||
configuration = new Configuration(configFile);
|
||||
@@ -507,7 +508,7 @@ public class Config {
|
||||
GameRegistry.registerBlock(visAuraProvider, "visAuraProvider");
|
||||
GameRegistry.registerTileEntity(TileEntityVisAuraProvider.class, "visAuraProvider");
|
||||
|
||||
if (isGTLoaded) BlockApimancersDrainer.drainer = TileEntityApimancersDrainerGT.class;
|
||||
if (isGTNHCoreModLoaded) BlockApimancersDrainer.drainer = TileEntityApimancersDrainerGT.class;
|
||||
apimancersDrainer = new BlockApimancersDrainer();
|
||||
GameRegistry.registerBlock(apimancersDrainer, "apimancersDrainer");
|
||||
GameRegistry.registerTileEntity(BlockApimancersDrainer.drainer, "apimancersDrainer");
|
||||
|
||||
Reference in new issue
Block a user