Skip to content

Commit

Permalink
Don't duplicate in context.cuboids
Browse files Browse the repository at this point in the history
I declare a formal "woops" on behalf of whoever wrote that bit of code.
  • Loading branch information
mcmonkey4eva committed Nov 27, 2014
1 parent d249422 commit 7caf70d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -3423,9 +3423,11 @@ else if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK)
for (dCuboid cuboid : cuboids) {
events.add(interaction + " block in " + cuboid.identifySimple());
events.add(interaction + ' ' + blockMaterial.identifySimple() + " in " + cuboid.identifySimple());
cuboid_context.add(cuboid.identifySimple());
}
}
for (dCuboid cuboid : cuboids) {
cuboid_context.add(cuboid.identifySimple());
}
// Add in cuboids context, with either the cuboids or an empty list
context.put("cuboids", cuboid_context);

Expand Down

0 comments on commit 7caf70d

Please sign in to comment.