Empty flasks can now be refilled (#976)

Right click a water source (any block that uses Material.WATER, same as vanilla potions) to refill it. This removes all potion effects. The model will display without the fluid inside as a visual indicator.

(cherry picked from commit 4c614df)
This commit is contained in:
Nicholas Ignoffo 2016-12-30 18:27:16 -08:00
parent f3f1dfb08a
commit 78093631c5
3 changed files with 69 additions and 14 deletions

View file

@ -163,6 +163,9 @@ public class ClientProxy extends CommonProxy
if (tintIndex != 0 && tintIndex != 2)
return -1;
if (stack.hasTagCompound() && stack.getTagCompound().hasKey("empty"))
return -1;
return PotionUtils.getPotionColorFromEffectList(PotionUtils.getEffectsFromStack(stack));
}
}, ModItems.POTION_FLASK);