Merge pull request #57 from c0508383/master

GUI fixes for NPC entity selection.
This commit is contained in:
Kamron Vaswani authored and GitHub committed 2022-06-14 22:26:23 -04:00
commit 18ad84e186
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;
}