Skip to content

Commit

Permalink
Downgrade for 1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Jan 11, 2023
1 parent 4b192a1 commit 4d999e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

ko_fi: tr7zw
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import net.minecraft.client.Minecraft;
import net.minecraft.client.OptionInstance;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.Registry;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.Item;
Expand Down Expand Up @@ -101,10 +101,10 @@ public boolean preventFirstperson() {
});

autoVanillaHandItems.clear();
Item invalid = BuiltInRegistries.ITEM.get(new ResourceLocation("minecraft", "air"));
Item invalid = Registry.ITEM.get(new ResourceLocation("minecraft", "air"));
for (String itemId : config.autoVanillaHands) {
try {
Item item = BuiltInRegistries.ITEM.get(new ResourceLocation(itemId.split(":")[0], itemId.split(":")[1]));
Item item = Registry.ITEM.get(new ResourceLocation(itemId.split(":")[0], itemId.split(":")[1]));
if (invalid != item)
autoVanillaHandItems.add(item);
} catch (Exception ex) {
Expand Down

0 comments on commit 4d999e2

Please sign in to comment.