mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 19:28:03 +01:00
#1481: Fix BeaconView#set[X]Effect(null)
By: Miles Holder <mwholder@proton.me>
This commit is contained in:
parent
98e7025512
commit
18f63085bb
1 changed files with 2 additions and 2 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue