Fix custom direct BlockState being not correctly set in DamageSource

This commit is contained in:
Doc 2024-05-03 21:58:56 -04:00
parent f2182ed473
commit 0e22fdd1eb
No known key found for this signature in database
GPG Key ID: 569482E14CAEBE86

View File

@ -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;
+ } + }
+ +