Update to 1.14.3

This commit is contained in:
Marcel Konrad
2019-06-25 13:57:07 +02:00
parent 7732f02e4e
commit d990f8512b
10 changed files with 34 additions and 31 deletions

View File

@@ -34,7 +34,7 @@ public abstract class ComponentPotion implements IBuilderComponent
{
CompoundNBT compound = new CompoundNBT();
compound.putByte("Id", (byte) Effect.getIdFromPotion(entry.getKey()));
compound.putByte("Id", (byte) Effect.getId(entry.getKey()));
compound.putByte("Amplifier", (byte) (potion.getAmplifier() - 1));
compound.putInt("Duration", Math.min(potion.toTicks(), 1000000));
compound.putBoolean("Ambient", potion.getAmbient());