mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-12 10:31:37 +01:00
Fix custom direct BlockState being not correctly set in DamageSource
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
9bf6a88788
commit
fb2cd0f8e3
@ -87,7 +87,7 @@
|
|||||||
+ }
|
+ }
|
||||||
+ // Cloning the instance lets us return unique instances of DamageSource without affecting constants defined in DamageSources
|
+ // Cloning the instance lets us return unique instances of DamageSource without affecting constants defined in DamageSources
|
||||||
+ DamageSource damageSource = this.cloneInstance();
|
+ DamageSource damageSource = this.cloneInstance();
|
||||||
+ damageSource.directBlockState = directBlockState;
|
+ damageSource.directBlockState = blockState;
|
||||||
+ return damageSource;
|
+ return damageSource;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user