mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-02-21 15:01:25 +01:00
Merge branch 'development'
This commit is contained in:
commit
a50e1fc5ee
6
pom.xml
6
pom.xml
@ -2,7 +2,7 @@
|
||||
<groupId>com.songoda</groupId>
|
||||
<artifactId>EpicFarming</artifactId>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<version>3.0.24</version>
|
||||
<version>3.0.24b</version>
|
||||
<build>
|
||||
<defaultGoal>clean install</defaultGoal>
|
||||
<finalName>EpicFarming-${project.version}</finalName>
|
||||
@ -83,11 +83,11 @@
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>private</id>
|
||||
<url>https://repo.songoda.com/artifactory/private/</url>
|
||||
<url>https://repo.songoda.com/repository/private/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>public</id>
|
||||
<url>https://repo.songoda.com/artifactory/public/</url>
|
||||
<url>https://repo.songoda.com/repository/public/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencies>
|
||||
|
@ -173,7 +173,7 @@ public class Farm {
|
||||
}
|
||||
|
||||
public void addItem(ItemStack toAdd) {
|
||||
for (ItemStack item : getItems()) {
|
||||
for (ItemStack item : new ArrayList<>(getItems())) {
|
||||
if (item.getType() != toAdd.getType()
|
||||
|| item.getAmount() + toAdd.getAmount() > item.getMaxStackSize()) continue;
|
||||
item.setAmount(item.getAmount() + toAdd.getAmount());
|
||||
|
Loading…
Reference in New Issue
Block a user