Restrict gamerule support to 1.13+

This commit is contained in:
Brianna 2019-12-27 07:56:38 -05:00
parent da30cdb726
commit b9e9885fe1

View File

@ -53,7 +53,8 @@ public class DeathListeners implements Listener {
}
}
if (!event.getEntity().getWorld().getGameRuleValue(GameRule.DO_MOB_LOOT))
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)
&& !event.getEntity().getWorld().getGameRuleValue(GameRule.DO_MOB_LOOT))
drops.clear();
if (instance.getEntityStackManager().isStacked(event.getEntity()))