diff --git a/src/main/java/quarri6343/overcrafted/api/object/IDishPile.java b/src/main/java/quarri6343/overcrafted/api/object/IDishPile.java index 8a61b23..c4cdeae 100644 --- a/src/main/java/quarri6343/overcrafted/api/object/IDishPile.java +++ b/src/main/java/quarri6343/overcrafted/api/object/IDishPile.java @@ -12,6 +12,8 @@ public interface IDishPile { * 皿置場を設置 */ public void place(); + + public void reset(); /** * 設置されている皿置場を消去 diff --git a/src/main/java/quarri6343/overcrafted/core/object/DishPile.java b/src/main/java/quarri6343/overcrafted/core/object/DishPile.java index af33afb..c632596 100644 --- a/src/main/java/quarri6343/overcrafted/core/object/DishPile.java +++ b/src/main/java/quarri6343/overcrafted/core/object/DishPile.java @@ -76,6 +76,10 @@ public void place() { dishPileEntity = itemFrame; } + public void reset(){ + dishNumber = 0; + } + public void destroy() { if (location == null) { Overcrafted.getInstance().getLogger().severe("存在しない座標の皿置場は消せません!"); diff --git a/src/main/java/quarri6343/overcrafted/core/object/OCTeams.java b/src/main/java/quarri6343/overcrafted/core/object/OCTeams.java index 4187a87..0e553f1 100644 --- a/src/main/java/quarri6343/overcrafted/core/object/OCTeams.java +++ b/src/main/java/quarri6343/overcrafted/core/object/OCTeams.java @@ -84,7 +84,9 @@ public int countAllPlayers() { public void clearDishPile(int stageID) { for (int i = 0; i < getTeamsLength(); i++) { getTeam(i).getCleanDishPiles().get(stageID).destroy(); + getTeam(i).getCleanDishPiles().get(stageID).reset(); getTeam(i).getDirtyDishPiles().get(stageID).destroy(); + getTeam(i).getDirtyDishPiles().get(stageID).reset(); } }