Skip to content

Commit

Permalink
Make moths arthopods (fixes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Jun 16, 2020
1 parent f92c97c commit 73fa6d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/dev/itsmeow/whisperwoods/entity/EntityMoth.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.block.LanternBlock;
import net.minecraft.block.RedstoneLampBlock;
import net.minecraft.block.TorchBlock;
import net.minecraft.entity.CreatureAttribute;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityPredicate;
import net.minecraft.entity.EntityType;
Expand Down Expand Up @@ -90,6 +91,11 @@ public void setNotLanded() {
this.dataManager.set(LANDED, 1);
}

@Override
public CreatureAttribute getCreatureAttribute() {
return CreatureAttribute.ARTHROPOD;
}

@Override
public void tick() {
super.tick();
Expand Down

0 comments on commit 73fa6d8

Please sign in to comment.