mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-27 01:08:34 +01:00
parent
edffceb500
commit
f4cc6ef6f5
1 changed files with 3 additions and 2 deletions
|
@ -67,9 +67,10 @@ public final class TeslaUtil{
|
|||
TESLA_MAP.put(tile, handlers);
|
||||
}
|
||||
|
||||
int side = facing == null ? 0 : facing.ordinal();
|
||||
EnumFacing properFacing = facing == null ? EnumFacing.DOWN : facing;
|
||||
int side = properFacing.ordinal();
|
||||
if(handlers[side] == null){
|
||||
handlers[side] = new TileTeslaWrapper(tile, facing);
|
||||
handlers[side] = new TileTeslaWrapper(tile, properFacing);
|
||||
}
|
||||
return handlers[side];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue