mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-06 23:54:43 +02:00
Fixing issues caused by the patch to deprecated ItemStack changes.
This commit is contained in:
@ -126,8 +126,7 @@ public class TreasuresConfig extends ConfigLoader{
|
||||
* Drops From & Max Level
|
||||
*/
|
||||
|
||||
ItemStack item = new ItemStack(id, amount, (short) 0);
|
||||
item.setData(new MaterialData(id, (byte) data));
|
||||
ItemStack item = (new MaterialData(id, (byte) data)).toItemStack(amount);
|
||||
|
||||
if (config.getBoolean("Treasures." + treasureName + ".Drops_From.Fishing", false)) {
|
||||
if (config.getConfigurationSection("Treasures." + treasureName + ".Drops_From").getKeys(false).size() != 1) {
|
||||
|
Reference in New Issue
Block a user