When you set the first layer to be levers in a superflat world it loads and within a few seconds crashes. Attached is my crash report.
Related issues
Attachments
Comments

[media]

Duplicate of MC-1510.

You are causing a stack overflow, levers have to be attached to a surface, so a bunch of levers popping off is exactly what is causing it, and by a bunch, I mean near infinity. I would not really call that a bug, but instead something that would happen naturally in a game at such an occasion.