13
0
geforkt von Mirrors/Paper

#1481: Fix BeaconView#set[X]Effect(null)

By: Miles Holder <mwholder@proton.me>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2024-09-25 07:52:14 +10:00
Ursprung 98e7025512
Commit 18f63085bb

Datei anzeigen

@ -35,11 +35,11 @@ public class CraftBeaconView extends CraftInventoryView<ContainerBeacon> impleme
@Override
public void setPrimaryEffect(@Nullable final PotionEffectType effectType) {
container.setData(TileEntityBeacon.DATA_PRIMARY, ContainerBeacon.encodeEffect(CraftPotionEffectType.bukkitToMinecraftHolder(effectType)));
container.setData(TileEntityBeacon.DATA_PRIMARY, ContainerBeacon.encodeEffect((effectType == null) ? null : CraftPotionEffectType.bukkitToMinecraftHolder(effectType)));
}
@Override
public void setSecondaryEffect(@Nullable final PotionEffectType effectType) {
container.setData(TileEntityBeacon.DATA_SECONDARY, ContainerBeacon.encodeEffect(CraftPotionEffectType.bukkitToMinecraftHolder(effectType)));
container.setData(TileEntityBeacon.DATA_SECONDARY, ContainerBeacon.encodeEffect((effectType == null) ? null : CraftPotionEffectType.bukkitToMinecraftHolder(effectType)));
}
}