fix formatting

This commit is contained in:
liids 2019-06-15 14:55:06 +02:00
parent 8b2b931c17
commit 6670c2b8fa

View File

@ -219,7 +219,7 @@ fn handle_spawn(server: &mut Server, entity: EcsEntity, args: String, action: &C
let opt_amount: Option<u32> = if let Some(amount) = opt_amount {
match amount.parse().ok() {
Some(x) if x == 0 => None,
x => x
x => x,
}
} else {
Some(1)