Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-10-01 23:50:11 +02:00
Fix stonecutters for Bedrock 1.18
Dieser Commit ist enthalten in:
Ursprung
ad5a98c859
Commit
046c93ffb0
@ -391,6 +391,7 @@ public abstract class InventoryTranslator {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case CRAFT_RECIPE: // Called by stonecutters 1.18+
|
||||||
case CRAFT_RECIPE_AUTO: // Called by villagers
|
case CRAFT_RECIPE_AUTO: // Called by villagers
|
||||||
case CRAFT_NON_IMPLEMENTED_DEPRECATED: // Tends to be called for UI inventories
|
case CRAFT_NON_IMPLEMENTED_DEPRECATED: // Tends to be called for UI inventories
|
||||||
case CRAFT_RESULTS_DEPRECATED: // Tends to be called for UI inventories
|
case CRAFT_RESULTS_DEPRECATED: // Tends to be called for UI inventories
|
||||||
|
@ -53,7 +53,8 @@ public class StonecutterInventoryTranslator extends AbstractBlockInventoryTransl
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldHandleRequestFirst(StackRequestActionData action, Inventory inventory) {
|
public boolean shouldHandleRequestFirst(StackRequestActionData action, Inventory inventory) {
|
||||||
return action.getType() == StackRequestActionType.CRAFT_NON_IMPLEMENTED_DEPRECATED;
|
// First is pre-1.18. TODO remove after 1.17.40 support is dropped and refactor stonecutter support to use CraftRecipeStackRequestActionData's recipe ID
|
||||||
|
return action.getType() == StackRequestActionType.CRAFT_NON_IMPLEMENTED_DEPRECATED || action.getType() == StackRequestActionType.CRAFT_RECIPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren