mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 12:42:53 +00:00
Work on things
This commit is contained in:
1 parent
5bb4b5d9a5
commit
3bf37f8838
31 files changed
+519
-762
No files matched your search
@@ -5,6 +5,7 @@ import binnie.botany.CreativeTabBotany;
|
||||
import binnie.botany.api.EnumAcidity;
|
||||
import binnie.botany.api.EnumMoisture;
|
||||
import binnie.botany.api.gardening.IBlockSoil;
|
||||
import binnie.botany.genetics.EnumFlowerType;
|
||||
import binnie.core.BinnieCore;
|
||||
import forestry.api.core.IItemModelRegister;
|
||||
import forestry.api.core.IModelManager;
|
||||
@@ -45,6 +46,10 @@ public class ItemSoilMeter extends Item implements IItemModelRegister {
|
||||
pos = pos.down();
|
||||
block = world.getBlockState(pos).getBlock();
|
||||
}
|
||||
if (!Gardening.isSoil(block)) {
|
||||
pos = pos.down();
|
||||
block = world.getBlockState(pos).getBlock();
|
||||
}
|
||||
if (Gardening.isSoil(block) && !BinnieCore.proxy.isSimulating(world)) {
|
||||
IBlockSoil soil = (IBlockSoil) block;
|
||||
String info = Binnie.Language.localise("botany.soil.type") + ": ";
|
||||
@@ -56,7 +61,7 @@ public class ItemSoilMeter extends Item implements IItemModelRegister {
|
||||
ITextComponent chat = new TextComponentString(info);
|
||||
player.addChatMessage(chat);
|
||||
}
|
||||
return super.onItemUse(stack, player, world, pos, hand, facing, hitX, hitY, hitZ);
|
||||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
|
||||
public static String getPH(ItemStack stack, boolean withColor, boolean byNeutralNone) {
|
||||
|
||||
@@ -13,16 +13,6 @@ public class BotanistTracker extends BreedingTracker implements IBotanistTracker
|
||||
super(s);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbt) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTTagCompound writeToNBT(NBTTagCompound compound) {
|
||||
return compound;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerPickup(final IIndividual individual) {
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user