Skip to content

Commit

Permalink
Fix crash with arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Sep 3, 2024
1 parent f0ef06c commit 6f7518c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import net.minecraft.entity.attribute.DefaultAttributeContainer;
import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.entity.mob.PathAwareEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.util.Identifier;
import net.minecraft.world.World;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -99,6 +101,11 @@ public boolean canImmediatelyDespawn(double distanceSquared) {
@Override
public void checkDespawn() { }

@Override
public ItemStack getProjectileType(ItemStack stack) {
return new ItemStack(Items.ARROW);
}

@Override
public Optional<Identifier> getSkin() {
return Optional.empty();
Expand Down

0 comments on commit 6f7518c

Please sign in to comment.