aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower/net/minecraft/world/effect/PoisonMobEffect.java.patch
diff options
context:
space:
mode:
authorMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
committerMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
commitbee74680e607c2e29b038329f62181238911cd83 (patch)
tree708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/mache-spigotflower/net/minecraft/world/effect/PoisonMobEffect.java.patch
parent0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff)
downloadPaper-softspoon.tar.gz
Paper-softspoon.zip
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/mache-spigotflower/net/minecraft/world/effect/PoisonMobEffect.java.patch')
-rw-r--r--patch-remap/mache-spigotflower/net/minecraft/world/effect/PoisonMobEffect.java.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower/net/minecraft/world/effect/PoisonMobEffect.java.patch b/patch-remap/mache-spigotflower/net/minecraft/world/effect/PoisonMobEffect.java.patch
new file mode 100644
index 0000000000..ef14fc65ec
--- /dev/null
+++ b/patch-remap/mache-spigotflower/net/minecraft/world/effect/PoisonMobEffect.java.patch
@@ -0,0 +1,31 @@
+--- a/net/minecraft/world/effect/PoisonMobEffect.java
++++ b/net/minecraft/world/effect/PoisonMobEffect.java
+@@ -4,22 +4,20 @@
+
+ class PoisonMobEffect extends MobEffect {
+
+- protected PoisonMobEffect(MobEffectCategory mobeffectcategory, int i) {
+- super(mobeffectcategory, i);
++ protected PoisonMobEffect(MobEffectCategory category, int color) {
++ super(category, color);
+ }
+
+ @Override
+- @Override
+- public void applyEffectTick(LivingEntity livingentity, int i) {
+- super.applyEffectTick(livingentity, i);
+- if (livingentity.getHealth() > 1.0F) {
+- livingentity.hurt(livingentity.damageSources().magic(), 1.0F);
++ public void applyEffectTick(LivingEntity livingEntity, int amplifier) {
++ super.applyEffectTick(livingEntity, amplifier);
++ if (livingEntity.getHealth() > 1.0F) {
++ livingEntity.hurt(livingEntity.damageSources().poison, 1.0F); // CraftBukkit - DamageSource.MAGIC -> CraftEventFactory.POISON
+ }
+
+ }
+
+ @Override
+- @Override
+ public boolean shouldApplyEffectTickThisTick(int i, int j) {
+ int k = 25 >> j;
+