mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Fix iec rules
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user