Skip to content

Commit

Permalink
patch 1.13 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 31, 2020
1 parent 7697d08 commit fb6948d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Expand Up @@ -88,9 +88,11 @@ public static void registerMainEvents() {
ScriptEvent.registerScriptEvent(new SheepDyedScriptEvent());
ScriptEvent.registerScriptEvent(new SheepRegrowsScriptEvent());
ScriptEvent.registerScriptEvent(new SlimeSplitsScriptEvent());
ScriptEvent.registerScriptEvent(new VillagerAcquiresTradeScriptEvent());
ScriptEvent.registerScriptEvent(new VillagerChangesProfessionScriptEvent());
ScriptEvent.registerScriptEvent(new VillagerReplenishesTradeScriptEvent());
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_14)) {
ScriptEvent.registerScriptEvent(new VillagerAcquiresTradeScriptEvent());
ScriptEvent.registerScriptEvent(new VillagerChangesProfessionScriptEvent());
ScriptEvent.registerScriptEvent(new VillagerReplenishesTradeScriptEvent());
}

// NPC events
if (Depends.citizens != null) {
Expand Down
Expand Up @@ -89,7 +89,7 @@ public class ItemScriptContainer extends ScriptContainer {
// # Note that the internal rules for Recipe IDs are very strict (limited to "a-z", "0-9", "/", ".", "_", or "-").
// recipe_id: my_custom_item_id
// # You can optional add a group as well. If unspecified, the item will have no group.
// # Groups are used to merge together similar recipes (in particular, multiple recipes for one item).
// # Groups are used to merge together similar recipes in the recipe book (in particular, multiple recipes for one item).
// group: my_custom_group
// # You can optionally specify the quantity to output. The default is 1 (or whatever the item script's quantity is).
// output_quantity: 4
Expand Down

0 comments on commit fb6948d

Please sign in to comment.