Skip to content

Commit

Permalink
fix: 辐射物品特性判断错误 (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
JWJUN233233 authored May 30, 2024
1 parent 872eae8 commit b86c047
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import io.github.thebusybiscuit.slimefun4.core.attributes.RadiationSymptom;
import io.github.thebusybiscuit.slimefun4.core.attributes.Radioactive;
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
import io.github.thebusybiscuit.slimefun4.implementation.items.RadioactiveItem;
import io.github.thebusybiscuit.slimefun4.implementation.listeners.RadioactivityListener;
import io.github.thebusybiscuit.slimefun4.utils.RadiationUtils;
import java.util.HashMap;
Expand Down Expand Up @@ -52,7 +51,7 @@ protected void onPlayerTick(Player p, PlayerProfile profile) {
continue;
}
SlimefunItem sfItem = SlimefunItem.getByItem(item);
if (sfItem instanceof RadioactiveItem radioactiveItem) {
if (sfItem instanceof Radioactive radioactiveItem) {
exposureTotal += item.getAmount()
* radioactiveItem.getRadioactivity().getExposureModifier();
}
Expand Down

0 comments on commit b86c047

Please sign in to comment.