Sign in to follow this
Followers
0

[Solved] [1.12.2] Fluid block texture is not rendered
By
Nuparu00, in Modder Support
-
Recently Browsing
No registered users viewing this page.
-
Posts
-
OK Thank you. I had 2 Random Patches datas in my mods folder.
-
so i need to update java?
-
but eclipse say i have to set the cast currently i looked in the vanilla EnchantmentHelper at the method removeIncompatible and i creat this: List<Enchantment> enchantmentList = enchantments.keySet().stream().collect(Collectors.toList()); List<Integer> levelList = enchantments.values().stream().collect(Collectors.toList()); List<EnchantmentData> data = new ArrayList<EnchantmentData>(); for (int i = 0; i < enchantments.size(); i++) { data.add(new EnchantmentData(enchantmentList.get(i), levelList.get(i))); } for (int i = 0; i < data.size(); i++) { EnchantmentHelper.removeIncompatible(data, data.get(i)); }
-
By diesieben07 · Posted
Sure. Although you should not need that cast. Actually. I looked again. No, that does not make sense. Why are you trying to cast the iterator. -
than this while (enchantmentIterator.hasNext()) { Enchantment enchantment = (Enchantment) enchantmentIterator; if (!enchantment.isCompatibleWith(enchantmentIterator.next())) { enchantmentIterator.remove(); } }
-
-
Topics
-
Who's Online (See full list)