mirror of
https://github.com/PaperMC/Paper.git
synced 2025-05-19 05:30:23 -07:00
Clone blockpos in InsideBlockEffectApplier record
This commit is contained in:
parent
723b511fe1
commit
ed322043d0
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user