Skip to content
Snippets Groups Projects
Commit 02c9f06f authored by Julian's avatar Julian
Browse files

Block fields correctly

parent 6e641446
No related branches found
No related tags found
1 merge request!2Resolve "Implement basic functionality"
......@@ -55,7 +55,8 @@ export default {
name: "App",
methods: {
blockField(x, y, key) {
// We won't move fields with ID 'obj8' and nothing into (4, 3)
// We won't move fields with ID 'obj8' and nothing into (3, 3) and (4, 3)
if (x === 3 && y === 3) return false;
if (x === 4 && y === 3) return false;
return key !== "obj8";
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment