Skip to content

Commit cfb25f0

Browse files
committed
Fix missing tileX in new actions
Fixes #42
1 parent 4bcf83b commit cfb25f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/modlauncher/src/main/java/org/gotti/wurmunlimited/modsupport/actions/ActionPerformerChain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public boolean action(Action action, Creature performer, int tilex, int tiley, b
154154

155155
@Override
156156
public boolean action(Action action, Creature performer, Item source, int tilex, int tiley, boolean onSurface, int heightOffset, int tile, int dir, short num, float counter) {
157-
return wrap(action).action(action, performer, source, tiley, tiley, onSurface, heightOffset, tile, dir, num, counter);
157+
return wrap(action).action(action, performer, source, tilex, tiley, onSurface, heightOffset, tile, dir, num, counter);
158158
}
159159

160160
private WrappedBehaviour wrap(Action action) {

modules/modlauncher/src/main/java/org/gotti/wurmunlimited/modsupport/actions/WrappedBehaviour.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public boolean action(Action action, Creature performer, int tilex, int tiley, b
167167
}
168168

169169
public boolean action(Action action, Creature performer, Item source, int tilex, int tiley, boolean onSurface, int heightOffset, int tile, int dir, short num, float counter) {
170-
return action(action, actionPerformer -> actionPerformer.action(action, performer, source, tiley, tiley, onSurface, heightOffset, tile, dir, num, counter));
170+
return action(action, actionPerformer -> actionPerformer.action(action, performer, source, tilex, tiley, onSurface, heightOffset, tile, dir, num, counter));
171171
}
172172

173173
/**

0 commit comments

Comments
 (0)