Disable frost walker enchantment on anything but vanilla water (#3906)
This commit is contained in:
parent
81d61218b6
commit
03e922fa05
|
@ -0,0 +1,11 @@
|
|||
--- ../src-base/minecraft/net/minecraft/enchantment/EnchantmentFrostWalker.java
|
||||
+++ ../src-work/minecraft/net/minecraft/enchantment/EnchantmentFrostWalker.java
|
||||
@@ -59,7 +59,7 @@
|
||||
{
|
||||
IBlockState iblockstate1 = p_185266_1_.func_180495_p(blockpos$mutableblockpos1);
|
||||
|
||||
- if (iblockstate1.func_185904_a() == Material.field_151586_h && ((Integer)iblockstate1.func_177229_b(BlockLiquid.field_176367_b)).intValue() == 0 && p_185266_1_.func_190527_a(Blocks.field_185778_de, blockpos$mutableblockpos1, false, EnumFacing.DOWN, (Entity)null))
|
||||
+ if (iblockstate1.func_185904_a() == Material.field_151586_h && (iblockstate1.func_177230_c() == net.minecraft.init.Blocks.field_150355_j || iblockstate1.func_177230_c() == net.minecraft.init.Blocks.field_150358_i) && ((Integer)iblockstate1.func_177229_b(BlockLiquid.field_176367_b)).intValue() == 0 && p_185266_1_.func_190527_a(Blocks.field_185778_de, blockpos$mutableblockpos1, false, EnumFacing.DOWN, (Entity)null))
|
||||
{
|
||||
p_185266_1_.func_175656_a(blockpos$mutableblockpos1, Blocks.field_185778_de.func_176223_P());
|
||||
p_185266_1_.func_175684_a(blockpos$mutableblockpos1.func_185334_h(), Blocks.field_185778_de, MathHelper.func_76136_a(p_185266_0_.func_70681_au(), 60, 120));
|
Loading…
Reference in New Issue