chore: Minor changes
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package cz.jzitnik.game.generation;
|
||||
|
||||
import cz.jzitnik.game.entities.Block;
|
||||
import cz.jzitnik.game.entities.items.ItemBlockSupplier;
|
||||
import cz.jzitnik.game.Game;
|
||||
import cz.jzitnik.game.SpriteLoader;
|
||||
import cz.jzitnik.game.sprites.Steve;
|
||||
@ -33,10 +32,6 @@ public class Generation {
|
||||
// Spawn player at a valid starting point
|
||||
world[terrainHeight[256] - 1][256].add(steveBlock2);
|
||||
world[terrainHeight[256] - 2][256].add(steveBlock);
|
||||
|
||||
game.getInventory().addItem(ItemBlockSupplier.getItem("lava_bucket"));
|
||||
game.getInventory().addItem(ItemBlockSupplier.getItem("crafting_table"));
|
||||
game.getInventory().addItem(ItemBlockSupplier.getItem("oak_planks"));
|
||||
}
|
||||
|
||||
private static void initializeWorld(List<Block>[][] world) {
|
||||
|
@ -50,11 +50,16 @@ public class ThreadProvider {
|
||||
|
||||
for (int i = 0; i < paramTypes.length; i++) {
|
||||
Class<?> type = paramTypes[i];
|
||||
if (type == Game.class) params[i] = game;
|
||||
else if (type == ScreenRenderer.class) params[i] = screenRenderer;
|
||||
else if (type == Terminal.class) params[i] = terminal;
|
||||
else if (type == boolean[].class) params[i] = isRunning;
|
||||
else if (type == Player.class) params[i] = game.getPlayer();
|
||||
if (type == Game.class)
|
||||
params[i] = game;
|
||||
else if (type == ScreenRenderer.class)
|
||||
params[i] = screenRenderer;
|
||||
else if (type == Terminal.class)
|
||||
params[i] = terminal;
|
||||
else if (type == boolean[].class)
|
||||
params[i] = isRunning;
|
||||
else if (type == Player.class)
|
||||
params[i] = game.getPlayer();
|
||||
else {
|
||||
suitable = false;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user