Clone blockpos in InsideBlockEffectApplier record

This commit is contained in:
Bjarne Koll 2025-04-14 18:31:39 +02:00
parent 723b511fe1
commit ed322043d0
No known key found for this signature in database
GPG Key ID: 9576DAF3FDDB088F

View File

@ -45,10 +45,10 @@
}
+
+ // Paper start - track position inside effect was triggered on
+ private net.minecraft.core.BlockPos currentBlockPos;
+ private net.minecraft.core.BlockPos currentBlockPos = null;
+
+ private Consumer<Entity> recorded(final InsideBlockEffectType type) {
+ return new RecordedEffect(this.currentBlockPos, type.effect());
+ return new RecordedEffect(this.currentBlockPos.immutable(), type.effect());
+ }
+
+ record RecordedEffect(