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 org.jline.terminal.TerminalBuilder;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.sql.SQLOutput;
|
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@ -52,9 +51,7 @@ public class Main {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
customLogicProvider.update(game);
|
customLogicProvider.update(game);
|
||||||
} catch (Exception e) {
|
} catch (Exception _) {}
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (game.getWindow() == Window.WORLD) {
|
if (game.getWindow() == Window.WORLD) {
|
||||||
screenRenderer.render(game);
|
screenRenderer.render(game);
|
||||||
|
@ -23,7 +23,6 @@ import lombok.Setter;
|
|||||||
import org.jline.terminal.Terminal;
|
import org.jline.terminal.Terminal;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
@ -106,7 +106,7 @@ public class ItemBlockSupplier {
|
|||||||
try {
|
try {
|
||||||
Item item = registeredItems.get(key).newInstance();
|
Item item = registeredItems.get(key).newInstance();
|
||||||
if (registeredBlocks.containsKey(blockList.get(key))) {
|
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;
|
return item;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user