Fixed crash with null facing in tesla integration

Closes #219
This commit is contained in:
Ellpeck 2016-08-29 23:11:35 +02:00
parent 65be29dbb5
commit bfa9aa2715

View file

@ -74,7 +74,7 @@ public final class TeslaUtil{
TESLA_MAP.put(tile, handlers);
}
int side = facing.ordinal();
int side = facing == null ? 0 : facing.ordinal();
if(handlers[side] == null){
handlers[side] = new TileTeslaWrapper(tile, facing);
}