mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Remove the configuration option for handling empty tags in ingredients. (#8799)
Now empty tags are considered broken in all states.
This commit is contained in:
1 parent
2256e88fb4
commit
06d568408c
3 files changed
+2
-10
No files matched your search
@@ -28,8 +28,6 @@ public class ForgeConfig {
|
||||
public final DoubleValue zombieBaseSummonChance;
|
||||
public final DoubleValue zombieBabyChance;
|
||||
|
||||
public final BooleanValue treatEmptyTagsAsAir;
|
||||
|
||||
public final BooleanValue fixAdvancementLoading;
|
||||
|
||||
public final ConfigValue<String> permissionHandler;
|
||||
@@ -67,12 +65,6 @@ public class ForgeConfig {
|
||||
.translation("forge.configgui.zombieBabyChance")
|
||||
.worldRestart()
|
||||
.defineInRange("zombieBabyChance", 0.05D, 0.0D, 1.0D);
|
||||
|
||||
treatEmptyTagsAsAir = builder
|
||||
.comment("Vanilla will treat crafting recipes using empty tags as air, and allow you to craft with nothing in that slot. This changes empty tags to use BARRIER as the item. To prevent crafting with air.")
|
||||
.translation("forge.configgui.treatEmptyTagsAsAir")
|
||||
.define("treatEmptyTagsAsAir", false);
|
||||
|
||||
fixAdvancementLoading = builder
|
||||
.comment("Fix advancement loading to use a proper topological sort. This may have visibility side-effects and can thus be turned off if needed for data-pack compatibility.")
|
||||
.translation("forge.configgui.fixAdvancementLoading")
|
||||
|
||||
@@ -1048,7 +1048,7 @@ public class ForgeHooks
|
||||
{
|
||||
ItemStack[] items = ingredient.getItems();
|
||||
if (items.length == 0) return true;
|
||||
if (items.length == 1 && !ForgeConfig.SERVER.treatEmptyTagsAsAir.get())
|
||||
if (items.length == 1)
|
||||
{
|
||||
//If we potentially added a barrier due to the ingredient being an empty tag, try and check if it is the stack we added
|
||||
ItemStack item = items[0];
|
||||
|
||||
Reference in new issue
Block a user