geforkt von Mirrors/Paper
#1481: Fix BeaconView#set[X]Effect(null)
By: Miles Holder <mwholder@proton.me>
Dieser Commit ist enthalten in:
Ursprung
98e7025512
Commit
18f63085bb
@ -35,11 +35,11 @@ public class CraftBeaconView extends CraftInventoryView<ContainerBeacon> impleme
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPrimaryEffect(@Nullable final PotionEffectType effectType) {
|
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
|
@Override
|
||||||
public void setSecondaryEffect(@Nullable final PotionEffectType effectType) {
|
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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren