Skip to content

Commit

Permalink
Fix setDead() if mob is not dead yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdielKavash committed Nov 2, 2024
1 parent a882ea3 commit e8b37c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mods/natura/entity/HeatscarSpider.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected BabyHeatscarSpider createBabyInstance() {
@Override
public void setDead() {

if (!this.worldObj.isRemote) {
if (!this.worldObj.isRemote && this.getHealth() <= 0.0f) {
int num = PHNatura.babyHeatscarMaximum - PHNatura.babyHeatscarMinimum + 1;
int amount = rand.nextInt(num) + PHNatura.babyHeatscarMinimum;
for (int i = 0; i < amount; i++) {
Expand Down

0 comments on commit e8b37c3

Please sign in to comment.