This commit is contained in:
FalsePattern committed 2022-03-17 15:47:16 +01:00
1 parent a056161e0d
commit 353f65dbe4
4 files changed
+18 -21

No files matched your search

@@ -15,14 +15,13 @@ import com.falsepattern.endlessids.asm.transformer.VanillaS24PacketBlockActivati
import com.falsepattern.endlessids.asm.transformer.VanillaS22PacketMultiBlockChange;
import com.falsepattern.endlessids.asm.transformer.VanillaNetHandlerPlayClient;
import com.falsepattern.endlessids.asm.transformer.VanillaDataWatcher;
import com.falsepattern.endlessids.asm.transformer.VanillaStatList;
import java.util.Map;
public enum ClassEdit
{
//SelfHooks(new SelfHooks(), new String[] { "com.falsepattern.endlessids.Hooks" }),
//VanillaBlockFire(new VanillaBlockFire(), new String[] { "net.minecraft.block.BlockFire" }),
VanillaStatList(new VanillaStatList(), new String[] { "net.minecraft.stats.StatList" }),
//VanillaStatList(new VanillaStatList(), new String[] { "net.minecraft.stats.StatList" }),
//VanillaAnvilChunkLoader(new VanillaAnvilChunkLoader(), new String[] { "net.minecraft.world.chunk.storage.AnvilChunkLoader" }),
//VanillaChunk(new VanillaChunk(), new String[] { "net.minecraft.world.chunk.Chunk" }),
//VanillaExtendedBlockStorage(new VanillaExtendedBlockStorage(), new String[] { "net.minecraft.world.chunk.storage.ExtendedBlockStorage" }),
@@ -1,19 +0,0 @@
package com.falsepattern.endlessids.asm.transformer;
import org.objectweb.asm.tree.MethodNode;
import com.falsepattern.endlessids.asm.AsmUtil;
import org.objectweb.asm.tree.ClassNode;
import com.falsepattern.endlessids.asm.IClassNodeTransformer;
public class VanillaStatList implements IClassNodeTransformer
{
public VanillaStatList() {
super();
}
@Override
public void transform(final ClassNode cn, final boolean obfuscated) {
final MethodNode method = AsmUtil.findMethod(cn, "<clinit>");
AsmUtil.transformInlinedSizeMethod(cn, method, 4096, 32768, false);
}
}