Skip to content

Commit

Permalink
Parametrise this return type too
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Aug 13, 2024
1 parent 34d43d4 commit e5e542b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected AbstractCustomEntity(TemplatePaperPlugin plugin, CustomEntityManager c

protected abstract E generateCustomEntity(E baseEntity);

public Entity getCustomEntity(Location spawnLocation) {
public E getCustomEntity(Location spawnLocation) {
E entity = (E) spawnLocation.getWorld().spawnEntity(spawnLocation, entityType);
entity.getPersistentDataContainer().set(plugin.getCustomEntityIdKey(), PersistentDataType.STRING, entityId.name());
return generateCustomEntity(entity);
Expand Down

0 comments on commit e5e542b

Please sign in to comment.