mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
Clone blockpos in InsideBlockEffectApplier record
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user