mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 17:52:02 -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
|
+ // 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) {
|
+ private Consumer<Entity> recorded(final InsideBlockEffectType type) {
|
||||||
+ return new RecordedEffect(this.currentBlockPos, type.effect());
|
+ return new RecordedEffect(this.currentBlockPos.immutable(), type.effect());
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ record RecordedEffect(
|
+ record RecordedEffect(
|
||||||
|
Reference in New Issue
Block a user