mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-25 19:14:23 +00:00
BlockFire
This commit is contained in:
4 files changed
+19
-29
No files matched your search
@@ -16,13 +16,12 @@ import com.falsepattern.endlessids.asm.transformer.VanillaS22PacketMultiBlockCha
|
||||
import com.falsepattern.endlessids.asm.transformer.VanillaNetHandlerPlayClient;
|
||||
import com.falsepattern.endlessids.asm.transformer.VanillaDataWatcher;
|
||||
import com.falsepattern.endlessids.asm.transformer.VanillaStatList;
|
||||
import com.falsepattern.endlessids.asm.transformer.VanillaBlockFire;
|
||||
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" }),
|
||||
//VanillaBlockFire(new VanillaBlockFire(), new String[] { "net.minecraft.block.BlockFire" }),
|
||||
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" }),
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.falsepattern.endlessids.asm.transformer;
|
||||
|
||||
import com.falsepattern.endlessids.asm.AsmTransformException;
|
||||
import com.falsepattern.endlessids.asm.AsmUtil;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
import org.objectweb.asm.tree.ClassNode;
|
||||
import com.falsepattern.endlessids.asm.IClassNodeTransformer;
|
||||
|
||||
public class VanillaBlockFire implements IClassNodeTransformer
|
||||
{
|
||||
public VanillaBlockFire() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transform(final ClassNode cn, final boolean obfuscated) {
|
||||
boolean found = false;
|
||||
for (final MethodNode method : cn.methods) {
|
||||
if (AsmUtil.transformInlinedSizeMethod(cn, method, 4096, 32768, true)) {
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
throw new AsmTransformException("can't find 4096 constant in any method");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user