fix: Small bugfix

This commit is contained in:
Jakub Žitník 2025-03-07 10:03:51 +01:00
parent 2065f8ea2a
commit 05e76bd0d0
Signed by: jzitnik
GPG Key ID: C577A802A6AF4EF3
4 changed files with 3 additions and 7 deletions

View File

@ -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);

View File

@ -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

View File

@ -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;

View File

@ -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.");
}
}
}