public void buyPlant() { if (ItemManager.money < price || pm.getCount() == pm.getMax()) { return; } ItemManager.money -= price; pm.addPlant(store.getPlant(), entity); }