From b0a699433a0b7682d7a6f16d753945c8909f25df Mon Sep 17 00:00:00 2001 From: Zrips Date: Mon, 27 Jun 2016 14:56:01 +0300 Subject: [PATCH] Initialize PistonProtectionListener in any case --- com/gamingmesh/jobs/JobsPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com/gamingmesh/jobs/JobsPlugin.java b/com/gamingmesh/jobs/JobsPlugin.java index 8e7d859e..f69b90bd 100644 --- a/com/gamingmesh/jobs/JobsPlugin.java +++ b/com/gamingmesh/jobs/JobsPlugin.java @@ -114,8 +114,8 @@ public class JobsPlugin extends JavaPlugin { getServer().getPluginManager().registerEvents(new MythicMobsListener(this), this); } + Jobs.setPistonProtectionListener(this); if (Jobs.getGCManager().useBlockProtection) { - Jobs.setPistonProtectionListener(this); getServer().getPluginManager().registerEvents(Jobs.getPistonProtectionListener(), this); }