mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-26 23:23:01 +00:00
Various Mixin-related Fixes (#890)
* Update deps * Remove dead code * Add missing `@Override` annotations * Fix generics * Add `serialVersionUID`s * Address deprecation warnings * Use `@WrapWithCondition` v2 * Misc cleanup * Use AccessTransformers if possible * Fix mixin conflicts * Add `@Mutable` annotations * Fix injection targets * Update deps
This commit is contained in:
1 parent
611bbf02c8
commit
bb5526598e
158 files changed
+252
-619
No files matched your search
@@ -162,7 +162,8 @@ public class ConstDirectiveParser {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ConstDirective { " + type + " " + key + " = " + value + "; }";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import net.coderbot.iris.shaderpack.materialmap.BlockRenderType;
|
||||
import net.coderbot.iris.shaderpack.materialmap.NamespacedId;
|
||||
import net.coderbot.iris.shaderpack.option.ShaderPackOptions;
|
||||
import net.coderbot.iris.shaderpack.preprocessor.PropertiesPreprocessor;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
@@ -202,8 +203,8 @@ public class IdMap {
|
||||
ArrayList<ItemStack> leaves = OreDictionary.getOres("treeLeaves");
|
||||
for (ItemStack leaf : leaves) {
|
||||
if (leaf.getItem() instanceof ItemBlock) {
|
||||
Iris.logger.warn("Found leaf " + leaf.getItem().itemRegistry.getNameForObject(leaf.getItem()));
|
||||
value.append(" ").append(leaf.getItem().itemRegistry.getNameForObject(leaf.getItem()));
|
||||
Iris.logger.warn("Found leaf " + Item.itemRegistry.getNameForObject(leaf.getItem()));
|
||||
value.append(" ").append(Item.itemRegistry.getNameForObject(leaf.getItem()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -11,7 +11,9 @@ import java.util.function.BiConsumer;
|
||||
* Properties backed by a {@link java.util.LinkedHashMap}, in order to preserve iteration order
|
||||
*/
|
||||
public class OrderBackedProperties extends Properties {
|
||||
private transient final Map<Object, Object> backing = Object2ObjectMaps.synchronize(new Object2ObjectLinkedOpenHashMap<>());
|
||||
|
||||
private static final long serialVersionUID = 1555967254721760731L;
|
||||
private transient final Map<Object, Object> backing = Object2ObjectMaps.synchronize(new Object2ObjectLinkedOpenHashMap<>());
|
||||
|
||||
@Override
|
||||
public synchronized Object put(Object key, Object value) {
|
||||
|
||||
Reference in new issue
Block a user