mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Fixed the Mana in a Bottle allowing for water to be placed in the nether and for the roof of the nether being accessed. Closes #1362
This commit is contained in:
1 parent
cf74725d33
commit
be17ae69a0
1 file changed
+7
-5
@@ -57,7 +57,7 @@ public class ItemBottledMana extends ItemMod {
|
||||
break;
|
||||
}
|
||||
case 1 : { // Water
|
||||
if(!player.worldObj.isRemote)
|
||||
if(!player.worldObj.isRemote && !player.worldObj.provider.isHellWorld)
|
||||
player.worldObj.setBlock(MathHelper.floor_double(player.posX), MathHelper.floor_double(player.posY), MathHelper.floor_double(player.posZ), Blocks.flowing_water);
|
||||
break;
|
||||
}
|
||||
@@ -72,9 +72,12 @@ public class ItemBottledMana extends ItemMod {
|
||||
break;
|
||||
}
|
||||
case 4 : { // Mega Jump
|
||||
if(!player.worldObj.isRemote)
|
||||
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 300, 5));
|
||||
player.motionY = 6;
|
||||
if(!player.worldObj.provider.isHellWorld) {
|
||||
if(!player.worldObj.isRemote)
|
||||
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 300, 5));
|
||||
player.motionY = 6;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case 5 : { // Randomly set HP
|
||||
@@ -103,7 +106,6 @@ public class ItemBottledMana extends ItemMod {
|
||||
player.rotationPitch = (float) Math.random() * 360F;
|
||||
player.rotationYaw = (float) Math.random() * 180F;
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
case 9 : { // Highest Possible
|
||||
|
||||
Reference in new issue
Block a user