diff --git a/src/main/java/org/spongepowered/common/effect/potion/SpongePotionBuilder.java b/src/main/java/org/spongepowered/common/effect/potion/SpongePotionBuilder.java index a1f3ef2e22b..2285326218d 100644 --- a/src/main/java/org/spongepowered/common/effect/potion/SpongePotionBuilder.java +++ b/src/main/java/org/spongepowered/common/effect/potion/SpongePotionBuilder.java @@ -117,10 +117,7 @@ public PotionEffect.Builder duration(final @NonNull Ticks duration) { } @Override - public PotionEffect.Builder amplifier(final int amplifier) throws IllegalArgumentException { - if (amplifier < 0) { - throw new IllegalArgumentException("Amplifier must not be negative"); - } + public PotionEffect.Builder amplifier(final int amplifier) { this.amplifier = amplifier; return this; } diff --git a/src/mixins/java/org/spongepowered/common/mixin/core/client/multiplayer/ClientPacketListenerMixin.java b/src/mixins/java/org/spongepowered/common/mixin/core/client/multiplayer/ClientPacketListenerMixin.java index 1239b68f32e..f3046ef4b97 100644 --- a/src/mixins/java/org/spongepowered/common/mixin/core/client/multiplayer/ClientPacketListenerMixin.java +++ b/src/mixins/java/org/spongepowered/common/mixin/core/client/multiplayer/ClientPacketListenerMixin.java @@ -26,9 +26,7 @@ import net.minecraft.client.multiplayer.ClientPacketListener; import net.minecraft.network.Connection; -import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.common.bridge.network.ConnectionHolderBridge; import org.spongepowered.common.mixin.api.minecraft.client.multiplayer.ClientCommonPacketListenerImpl_API;