Skip to content

Commit

Permalink
more adjustments to effects
Browse files Browse the repository at this point in the history
  • Loading branch information
2piradians committed Jan 8, 2017
1 parent 9ed3d09 commit 9b0507b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)

//dark pris
//sink faster in water; respiration, night vision, depth strider in water
if (set.block == Blocks.PRISMARINE) {
if (set.block == Blocks.PRISMARINE && set.meta == 2) {
if (player.isInWater() && world.getBlockState(new BlockPos(player.posX, player.posY+1.7, player.posZ)).getBlock() instanceof BlockLiquid) {
if (!player.isPotionActive(MobEffects.NIGHT_VISION)
|| (player.isPotionActive(MobEffects.NIGHT_VISION)
Expand Down

0 comments on commit 9b0507b

Please sign in to comment.