Fix iec rules

This commit is contained in:
MrJeremyFisher
2024-06-19 14:15:06 -04:00
parent 6ec0dde0ef
commit 3edc0cf107
3 changed files with 5 additions and 2 deletions

View File

@@ -98,6 +98,9 @@ public final class CreateCommand extends BaseCommand {
player.sendMessage(ChatColor.RED + "You cannot exchange rule blocks!");
return;
}
System.out.println(inputItem);
System.out.println(outputItem);
ExchangeRule inputRule = new ExchangeRule(Type.INPUT, inputItem);
if (outputItem == null) {
Utilities.giveItemsOrDrop(inventory, inputRule.toItem());

View File

@@ -53,7 +53,7 @@ public record BulkExchangeRule(List<ExchangeRule> rules) implements ExchangeData
}
public ItemStack toItem() {
ItemStack item = ItemStack.empty();
ItemStack item = ItemExchangeConfig.getRuleItem();
final var itemNBT = new NBTCompound();
toNBT(itemNBT);

View File

@@ -435,7 +435,7 @@ public final class ExchangeRule implements ExchangeData {
* @return Returns an itemised representation of this rule.
*/
public ItemStack toItem() {
ItemStack item = ItemStack.empty();
ItemStack item = ItemExchangeConfig.getRuleItem();
final var itemNBT = new NBTCompound();
toNBT(itemNBT);