mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-08 03:21:32 +01:00
Fix for command amount.
This commit is contained in:
parent
005af2515b
commit
d55e4d15f4
@ -5,7 +5,6 @@ import com.google.gson.GsonBuilder;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.songoda.ultimatestacker.UltimateStacker;
|
||||
import com.songoda.ultimatestacker.utils.ServerVersion;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Ageable;
|
||||
@ -95,7 +94,8 @@ public class LootManager {
|
||||
toDrop.add(new Drop(item));
|
||||
}
|
||||
if (command != null) {
|
||||
toDrop.add(new Drop(command));
|
||||
for (int i = 0; i < amount; i++)
|
||||
toDrop.add(new Drop(command));
|
||||
}
|
||||
}
|
||||
return toDrop;
|
||||
|
Loading…
Reference in New Issue
Block a user