mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-24 23:13:43 +02:00 
			
		
		
		
	Realized that it wasn't only happening in the Nether
This commit is contained in:
		| @@ -51,7 +51,7 @@ Version 1.4.06-dev | |||||||
|  = Fixed bug with Blast Mining where the Ability refreshed message was being send too early |  = Fixed bug with Blast Mining where the Ability refreshed message was being send too early | ||||||
|  = Fixed bug where the chance of a successful Gracefull Roll was twice as high as displayed |  = Fixed bug where the chance of a successful Gracefull Roll was twice as high as displayed | ||||||
|  = Fixed bug where lucky perks where not working |  = Fixed bug where lucky perks where not working | ||||||
|  = Fixed bug with Ice Fishing in the Nether |  = Fixed bug with Ice Fishing on a single block of ice | ||||||
|  ! Changed Spout notification tiers to be stored in SpoutConfig instead of AdvancedConfig |  ! Changed Spout notification tiers to be stored in SpoutConfig instead of AdvancedConfig | ||||||
|  ! Changed Berserk to add items to inventory rather than denying pickup |  ! Changed Berserk to add items to inventory rather than denying pickup | ||||||
|  ! Changed Call of the Wild, newly summoned pet's will have a custom name. (added permission node to disable this) |  ! Changed Call of the Wild, newly summoned pet's will have a custom name. (added permission node to disable this) | ||||||
|   | |||||||
| @@ -12,7 +12,6 @@ import org.bukkit.Material; | |||||||
| import org.bukkit.Sound; | import org.bukkit.Sound; | ||||||
| import org.bukkit.WeatherType; | import org.bukkit.WeatherType; | ||||||
| import org.bukkit.World; | import org.bukkit.World; | ||||||
| import org.bukkit.World.Environment; |  | ||||||
| import org.bukkit.block.Biome; | import org.bukkit.block.Biome; | ||||||
| import org.bukkit.block.Block; | import org.bukkit.block.Block; | ||||||
| import org.bukkit.block.BlockFace; | import org.bukkit.block.BlockFace; | ||||||
| @@ -177,19 +176,15 @@ public class FishingManager extends SkillManager { | |||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         if (block.getWorld().getEnvironment() == Environment.NETHER) { |  | ||||||
|             return false; |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|         if (block.getType() != Material.ICE) { |         if (block.getType() != Material.ICE) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         // Make sure this is a body of water, not just a block of ice. |         // Make sure this is a body of water, not just a block of ice. | ||||||
|         Biome biome = block.getBiome(); |         Biome biome = block.getBiome(); | ||||||
|         boolean isFrozenBiome = (biome == Biome.FROZEN_OCEAN || biome == Biome.FROZEN_RIVER); |         boolean isFrozenBiome = (biome == Biome.FROZEN_OCEAN || biome == Biome.FROZEN_RIVER || biome == Biome.TAIGA || biome == Biome.TAIGA_HILLS || biome == Biome.ICE_PLAINS || biome == Biome.ICE_MOUNTAINS); | ||||||
|  |  | ||||||
|         if (!isFrozenBiome && block.getRelative(BlockFace.DOWN, 3).getType() == (Material.STATIONARY_WATER)) { |         if (!isFrozenBiome && (block.getRelative(BlockFace.DOWN, 3).getType() != Material.STATIONARY_WATER)) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TfT_02
					TfT_02