Right click to update mana is gone :crabrave:

This commit is contained in:
Vincent Lee committed 2020-03-13 16:33:02 -05:00
1 parent 86bb0df996
commit ae6679d06f
17 files changed
+14 -66

No files matched your search

@@ -56,7 +56,6 @@ public class TileEntityGeneratingFlower extends TileEntitySpecialFlower {
int sizeLastCheck = -1;
protected TileEntity linkedCollector = null;
public int knownMana = -1;
public int passiveDecayTicks;
BlockPos cachedCollectorCoordinates = null;
@@ -204,7 +203,6 @@ public class TileEntityGeneratingFlower extends TileEntitySpecialFlower {
if(!player.world.isRemote)
sync();
knownMana = getMana();
SoundEvent evt = ForgeRegistries.SOUND_EVENTS.getValue(DING_SOUND_EVENT);
if(evt != null)
player.playSound(evt, 0.1F, 1F);
@@ -294,7 +292,7 @@ public class TileEntityGeneratingFlower extends TileEntitySpecialFlower {
public void renderHUD(Minecraft mc) {
String name = I18n.format(getBlockState().getBlock().getTranslationKey());
int color = getColor();
BotaniaAPI.internalHandler.drawComplexManaHUD(color, knownMana, getMaxMana(), name, BotaniaAPI.internalHandler.getBindDisplayForFlowerType(this), isValidBinding());
BotaniaAPI.internalHandler.drawComplexManaHUD(color, getMana(), getMaxMana(), name, BotaniaAPI.internalHandler.getBindDisplayForFlowerType(this), isValidBinding());
}
@Override