Funness - I can't spell

This commit is contained in:
WayofTime 2015-02-13 14:48:22 -05:00
parent cf183a46ca
commit a1fa511e7a
8 changed files with 78 additions and 50 deletions

View file

@ -332,7 +332,7 @@ public class AlchemicalWizardryEventHooks
@SubscribeEvent
public void onPlayerRespawnEvent(PlayerRespawnEvent event)
{
if (AlchemicalWizardry.respawnWithDebuff)
if (AlchemicalWizardry.respawnWithDebuff && event.player != null)
{
event.player.addPotionEffect(new PotionEffect(AlchemicalWizardry.customPotionSoulFray.id, 20 * 60 * 5, 0));
}