GUI fixes for NPC entity selection.

This commit is contained in:
Luis C.M committed 2022-06-14 21:15:30 -05:00
1 parent 5292916ef4
commit a195c4035a
1 file changed
+1 -1
@@ -115,7 +115,7 @@ public class GuiEntitySelection extends GuiNPCInterface
super.drawScreen(i, j, f);
}
public void elementClicked(){
if (playerdata.getEntityClass().equals(parent.data.get(slot.selected))) {
if (playerdata.getEntityClass() != null && playerdata.getEntityClass().equals(parent.data.get(slot.selected))) {
return;
}