Skip to content

Commit

Permalink
Fixed 3 bugs
Browse files Browse the repository at this point in the history
Fixed enchantments and Fuel element
  • Loading branch information
Goldorion committed Jul 30, 2020
1 parent 9cf5fc3 commit d8bc9d7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/fabric-1.16.1/mappings/enchantmenttypes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ALL: VANISHABLE
ARMOR: ARMOR
ARMOR_FEET: ARMOR_FEET
ARMOR_LEGS: ARMOR_LEGS
ARMOR_CHEST: ARMOR_CHEST
ARMOR_HEAD: ARMOR_HEAD
WEAPON: WEAPON
DIGGER: DIGGER
FISHING_ROD: FISHING_ROD
TRIDENT: TRIDENT
BREAKABLE: BREAKABLE
BOW: BOW
WEARABLE: WEARABLE
CROSSBOW: CROSSBOW
1 change: 0 additions & 1 deletion src/fabric-1.16.1/templates/enchantment.java.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public class ${name}Enchantment extends Enchantment {
return ${data.isTreasureEnchantment};
}

@Override
public boolean isCurse() {
return ${data.isCurse};
}
Expand Down
2 changes: 1 addition & 1 deletion src/fabric-1.16.1/templates/fuel.java.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import net.fabricmc.fabric.api.registry.FuelRegistry;

public class ${name}Fuel {
public static void initialize() {
FuelRegistry.INSTANCE.add(${mappedMCItemToItem(data.block)?remove_ending(", (int)(1))")}, ${data.power});
FuelRegistry.INSTANCE.add(${mappedMCItemToItem(data.block)?replace(", (int) (1)", "")}, ${data.power});
}
}
<#-- @formatter:on -->

0 comments on commit d8bc9d7

Please sign in to comment.