Sanitise firework flight power
This commit is contained in:
parent
f68970865f
commit
a077762b62
@ -43,6 +43,9 @@ public class WriterItemStackMetaFireworkFlight extends WriterAbstractItemStackMe
|
||||
@Override
|
||||
public void setB(FireworkMeta cb, Integer fb, ItemStack d)
|
||||
{
|
||||
fb = Math.min(fb, 127);
|
||||
fb = Math.max(fb, 0);
|
||||
|
||||
cb.setPower(fb);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user