Made it so that with "Main.Allow Non Command Issued Farm Items" enabled end rods are able to be broken in the end.

This commit is contained in:
Brianna O'Keefe 2018-10-24 22:43:34 -04:00
parent c5956775ba
commit 4cc56bd023
2 changed files with 6 additions and 3 deletions

View File

@ -150,10 +150,13 @@ public class BlockListeners implements Listener {
Farm farm = instance.getFarmManager().removeFarm(event.getBlock().getLocation());
if (farm == null) {
if (event.getBlock().getType() == Material.END_ROD)
event.getBlock().getLocation().getWorld().dropItemNaturally(event.getBlock().getLocation().add(.5,.5,.5), new ItemStack(Material.END_ROD));
return;
}
instance.getFarmTask().getCrops(farm, false);
if (farm == null) return;
event.setCancelled(true);
ItemStack item = instance.makeFarmItem(farm.getLevel());

View File

@ -1,7 +1,7 @@
name: EpicFarming
description: EpicFarming
main: com.songoda.epicfarming.EpicFarmingPlugin
version: 2.0.8
version: 2.0.9
depend: [Arconix]
soft-depend: [Multiverse-Core]
author: Songoda