Skip to content

Commit 7842a7e

Browse files
committed
added clear tileActions
1 parent 60f352c commit 7842a7e

File tree

1 file changed

+13
-0
lines changed
  • src/main/java/net/ddns/endercypt/cs2dmap/library/map/sub/extra/tile/action

1 file changed

+13
-0
lines changed

src/main/java/net/ddns/endercypt/cs2dmap/library/map/sub/extra/tile/action/TileActions.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ public void process(Tile tile)
1818
};
1919
}
2020

21+
public static TileAction clear()
22+
{
23+
return new TileAction()
24+
{
25+
@Override
26+
public void process(Tile tile)
27+
{
28+
tile.setTileModifier(new DisableTileModifiers());
29+
tile.setFrame(0);
30+
}
31+
};
32+
}
33+
2134
public static TileAction removeModifier()
2235
{
2336
return setModifier(new DisableTileModifiers());

0 commit comments

Comments
 (0)