divide by 0 error

This commit is contained in:
2024-06-06 15:27:07 -05:00
parent 972c99a146
commit 2ef0d4305c
+2 -2
View File
@@ -1336,7 +1336,7 @@ public class Warehouse extends AbstractWorldObject {
}
public static int getCostForResource(int id){
int newCost = 0;
int newCost = 1;
switch(id){
case 1580000://stone
newCost = 3000;
@@ -1413,6 +1413,6 @@ public class Warehouse extends AbstractWorldObject {
if(id == 1705032)
return 10;
return (int)(3000000 / (getCostForResource(id)));
return (int)(3000000 / getCostForResource(id));
}
}