Skip to content

Commit

Permalink
Fix duplicate generated class names (#8)
Browse files Browse the repository at this point in the history
Thanks to @Pyrofab for fixing this before I got a notification about it!
  • Loading branch information
Pyrofab authored Apr 26, 2020
1 parent 0b4dee5 commit 916d516
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static <T extends EntityLivingBase & IPossessable> T createPossessableEnt
}

private static String getName(Class baseClass) {
return String.format("%s_%s", EntityPossessableImpl.class.getName(), baseClass.getSimpleName());
return String.format("%s_%s_%s", EntityPossessableImpl.class.getName(), baseClass.getSimpleName(), baseClass.getName().hashCode());
}

/**
Expand Down

0 comments on commit 916d516

Please sign in to comment.