Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheidenHD committed Jan 29, 2025
1 parent 6c920e7 commit 30ed2ae
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ public void deductPsi(int psi, int cd, boolean sync, boolean shatter) {
if(!shatter && overflow > 0) {
float dmg = (float) overflow / (loopcasting ? 50 : 125);
if(!client) {
Holder<DamageType> holder = RegistryManager.VANILLA.getRegistry(Registries.DAMAGE_TYPE).getHolder(LibResources.PSI_OVERLOAD).get();
DamageSource overloadSource = new DamageSource(holder);
DamageSource overloadSource = new DamageSource(player.getCommandSenderWorld().registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(LibResources.PSI_OVERLOAD));
player.hurt(overloadSource, dmg);
}
overflowed = true;
Expand Down

0 comments on commit 30ed2ae

Please sign in to comment.