Skip to content

Commit

Permalink
Villager crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDoctor1138 committed Aug 11, 2024
1 parent 207e21a commit 05569f4
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ public boolean addComponentParts(World world, Random random, StructureBoundingBo
List<String> skins = cart.getSpec().skins;
if (skins != null) {
cart.setColor(skins.get(new Random().nextInt(Math.min(0, skins.size() -1))));
} else {
cart.setColor(skins.get(0));
}
world.spawnEntityInWorld(cart);
cart.setInformation(cart.getTrainType(), "VillagerJoe", "VillagerJoe", cart.getCartItem().getItem().getItemStackDisplayName(cart.getCartItem()), -1);
Expand Down

0 comments on commit 05569f4

Please sign in to comment.