mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 01:49:30 +00:00
修改沙发的支持形状
This commit is contained in:
@@ -23,6 +23,7 @@ items:
|
||||
is-redstone-conductor: false
|
||||
push-reaction: block
|
||||
instrument: bass
|
||||
support-shape: cobweb
|
||||
sounds:
|
||||
break: minecraft:block.wood.break
|
||||
fall: minecraft:block.wood.fall
|
||||
|
||||
@@ -39,9 +39,9 @@ public abstract class AbstractRecipeSerializer<T, R extends Recipe<T>> implement
|
||||
}
|
||||
|
||||
protected Condition<PlayerOptionalContext> conditions(Map<String, Object> arguments) {
|
||||
Object functions = ResourceConfigUtils.get(arguments, "conditions", "condition");
|
||||
if (functions == null) return null;
|
||||
List<Condition<PlayerOptionalContext>> conditionList = ResourceConfigUtils.parseConfigAsList(functions, EventConditions::fromMap);
|
||||
Object conditions = ResourceConfigUtils.get(arguments, "conditions", "condition");
|
||||
if (conditions == null) return null;
|
||||
List<Condition<PlayerOptionalContext>> conditionList = ResourceConfigUtils.parseConfigAsList(conditions, EventConditions::fromMap);
|
||||
if (conditionList.isEmpty()) return null;
|
||||
if (conditionList.size() == 1) return conditionList.getFirst();
|
||||
return new AllOfCondition<>(conditionList);
|
||||
|
||||
@@ -31,7 +31,6 @@ public abstract class CustomCraftingTableRecipe<T> extends AbstractGroupedRecipe
|
||||
this.craftingCondition = craftingCondition;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean canUse(PlayerOptionalContext context) {
|
||||
if (this.craftingCondition == null) return true;
|
||||
|
||||
Reference in New Issue
Block a user