v0.4.1a: improved exception handling for rooms

This commit is contained in:
Evan Debenham 2016-08-10 11:04:27 -04:00
parent e5439e6bcd
commit 4019e7333c

View File

@ -105,7 +105,10 @@ public class Room extends Rect implements Graph.Node, Bundlable {
private Method paint; private Method paint;
private Type( Class<? extends Painter> painter ) { Type( Class<? extends Painter> painter ) {
if (painter == null)
paint = null;
else
try { try {
paint = painter.getMethod( "paint", Level.class, Room.class ); paint = painter.getMethod( "paint", Level.class, Room.class );
} catch (Exception e) { } catch (Exception e) {