Added config options for Sealing Table

Translations for the Sealing Table
And a Data Tag for the Block
This commit is contained in:
Sn0wStorm
2020-04-06 10:51:44 +02:00
parent 12b0a3c115
commit f4bfdfa595
10 changed files with 85 additions and 38 deletions
+16
View File
@@ -1,5 +1,6 @@
package com.dre.brewery.filedata;
import com.dre.brewery.BSealer;
import com.dre.brewery.Brew;
import com.dre.brewery.DistortChat;
import com.dre.brewery.MCBarrel;
@@ -75,6 +76,10 @@ public class BConfig {
public static boolean alwaysShowQuality; // Always show quality stars
public static boolean alwaysShowAlc; // Always show alc%
//Features
public static boolean craftSealingTable; // Allow Crafting of Sealing Table
public static boolean enableSealingTable; // Allow Usage of Sealing Table
//Item
public static List<RecipeItem> customItems = new ArrayList<>();
@@ -221,6 +226,8 @@ public class BConfig {
enablePuke = config.getBoolean("enablePuke", false);
pukeDespawntime = config.getInt("pukeDespawntime", 60) * 20;
homeType = config.getString("homeType", null);
craftSealingTable = config.getBoolean("craftSealingTable", false);
enableSealingTable = config.getBoolean("enableSealingTable", false);
colorInBarrels = config.getBoolean("colorInBarrels", false);
colorInBrewer = config.getBoolean("colorInBrewer", false);
alwaysShowQuality = config.getBoolean("alwaysShowQuality", false);
@@ -329,6 +336,15 @@ public class BConfig {
DistortChat.log = config.getBoolean("logRealChat", false);
DistortChat.doSigns = config.getBoolean("distortSignText", false);
// Register Sealing Table Recipe
if (P.use1_14) {
if (craftSealingTable && !BSealer.recipeRegistered) {
BSealer.registerRecipe();
} else if (!craftSealingTable && BSealer.recipeRegistered) {
BSealer.unregisterRecipe();
}
}
// init SQL
if (sqlSync != null) {
try {