Fixed bug with Ice Fishing in the Nether

Fixes  #1218
This commit is contained in:
TfT_02
2013-06-24 16:25:49 +02:00
parent 98b98256b7
commit 6d7d811814
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.WeatherType;
import org.bukkit.World;
import org.bukkit.World.Environment;
import org.bukkit.block.Biome;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
@ -176,6 +177,10 @@ public class FishingManager extends SkillManager {
return false;
}
if (block.getWorld().getEnvironment() == Environment.NETHER) {
return false;
}
if (block.getType() != Material.ICE) {
return false;
}