forked from jzitnik/twodcraft
fix: Small bugfix
This commit is contained in:
parent
2065f8ea2a
commit
05e76bd0d0
@ -13,7 +13,6 @@ import org.jline.terminal.Terminal;
|
||||
import org.jline.terminal.TerminalBuilder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLOutput;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
@ -52,9 +51,7 @@ public class Main {
|
||||
}
|
||||
try {
|
||||
customLogicProvider.update(game);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} catch (Exception _) {}
|
||||
|
||||
if (game.getWindow() == Window.WORLD) {
|
||||
screenRenderer.render(game);
|
||||
|
@ -23,7 +23,6 @@ import lombok.Setter;
|
||||
import org.jline.terminal.Terminal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
@Getter
|
||||
|
@ -106,7 +106,7 @@ public class ItemBlockSupplier {
|
||||
try {
|
||||
Item item = registeredItems.get(key).newInstance();
|
||||
if (registeredBlocks.containsKey(blockList.get(key))) {
|
||||
item.setBlock(Optional.of(getBlock(dropsList.get(key), item)));
|
||||
item.setBlock(Optional.of(getBlock(blockList.get(key), item)));
|
||||
}
|
||||
|
||||
return item;
|
||||
|
@ -22,7 +22,7 @@ public class SmeltingTest {
|
||||
}
|
||||
|
||||
for (String fuel : Smelting.fuelList.keySet()) {
|
||||
assertDoesNotThrow(() -> ItemBlockSupplier.getItem(fuel), "Item " + fuel + "does not exist but is present as fuel in Smelting.");
|
||||
assertDoesNotThrow(() -> ItemBlockSupplier.getItem(fuel), "Item " + fuel + " does not exist but is present as fuel in Smelting.");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user