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.
This commit is contained in:
parent
b6eae2fc67
commit
4c614df15e
4 changed files with 75 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue