diff --git a/ASMEventMarker.py b/ASMEventMarker.py index c25b979..de72694 100644 --- a/ASMEventMarker.py +++ b/ASMEventMarker.py @@ -137,12 +137,10 @@ def create_mod(util): pos = findOps(lines,pos+1,[['ldc','culling']]) if pos is None: break - pos = findOps(lines,pos+1,[['dstore']]) - playerX = endw(lines[pos],1) - pos = findOps(lines,pos+1,[['dstore']]) - playerY = endw(lines[pos],1) - pos = findOps(lines,pos+1,[['dstore']]) - playerZ = endw(lines[pos],1) + pos = findOps(lines,pos+1,[['dload'],['dload'],['dload']]) + playerX = endw(lines[pos-2],1) + playerY = endw(lines[pos-1],1) + playerZ = endw(lines[pos ],1) pos = findOps(lines,pos+1,[['ldc','hand']]) lines.insert(pos+2,'dload '+playerX+'\n') lines.insert(pos+3,'dload '+playerY+'\n') diff --git a/ASMEventMarker.pyc b/ASMEventMarker.pyc index ef67fc4..428fdb6 100644 Binary files a/ASMEventMarker.pyc and b/ASMEventMarker.pyc differ diff --git a/ASMVillageMarker.py b/ASMVillageMarker.py index eae50a5..1529e1c 100644 --- a/ASMVillageMarker.py +++ b/ASMVillageMarker.py @@ -86,12 +86,10 @@ def create_mod(util): pos = findOps(lines,pos+1,[['ldc','culling']]) if pos is None: break - pos = findOps(lines,pos+1,[['dstore']]) - playerX = endw(lines[pos],1) - pos = findOps(lines,pos+1,[['dstore']]) - playerY = endw(lines[pos],1) - pos = findOps(lines,pos+1,[['dstore']]) - playerZ = endw(lines[pos],1) + pos = findOps(lines,pos+1,[['dload'],['dload'],['dload']]) + playerX = endw(lines[pos-2],1) + playerY = endw(lines[pos-1],1) + playerZ = endw(lines[pos ],1) pos = findOps(lines,pos+1,[['ldc','hand']]) lines.insert(pos+2,'dload '+playerX+'\n') lines.insert(pos+3,'dload '+playerY+'\n') diff --git a/ASMVillageMarker.pyc b/ASMVillageMarker.pyc index a8c1593..85e4cc3 100644 Binary files a/ASMVillageMarker.pyc and b/ASMVillageMarker.pyc differ