Fix milk buckets removing potion effects without filters. (#6609)

This commit is contained in:
CAS-ual-TY 2020-05-03 22:17:43 +02:00 committed by GitHub
parent a377727ac4
commit e8966a05f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,18 @@
if (p_77654_3_ instanceof ServerPlayerEntity) {
ServerPlayerEntity serverplayerentity = (ServerPlayerEntity)p_77654_3_;
CriteriaTriggers.field_193138_y.func_193148_a(serverplayerentity, p_77654_1_);
@@ -44,4 +46,9 @@
@@ -25,10 +27,6 @@
p_77654_1_.func_190918_g(1);
}
- if (!p_77654_2_.field_72995_K) {
- p_77654_3_.func_195061_cb();
- }
-
return p_77654_1_.func_190926_b() ? new ItemStack(Items.field_151133_ar) : p_77654_1_;
}
@@ -44,4 +42,9 @@
p_77659_2_.func_184598_c(p_77659_3_);
return ActionResult.func_226248_a_(p_77659_2_.func_184586_b(p_77659_3_));
}