chore: simplify

This commit is contained in:
cha0s 2019-05-30 09:11:29 -05:00
parent d11c6a6c72
commit ea1473d3af

View File

@ -28,21 +28,16 @@ export function wateringCanJSON() {
},
tool: {
params: {
condition: buildCondition(
'or',
[
// Has to be dirt.
buildCondition('is', [
6,
buildInvoke(
['user', 'layer', 'tileAt'],
[
buildTraversal(['target']),
],
),
]),
],
),
// Has to be dirt.
condition: buildCondition('is', [
6,
buildInvoke(
['user', 'layer', 'tileAt'],
[
buildTraversal(['target']),
],
),
]),
actions: {
type: 'actions',
traversals: [