We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4423e77 commit fe6cd3bCopy full SHA for fe6cd3b
setup/src/main/java/net/theevilreaper/bounce/setup/builder/GameMapBuilder.java
@@ -37,7 +37,17 @@ public GameMapBuilder(@NotNull GameMap gameMap) {
37
}
38
this.spawn = gameMap.getSpawn();
39
this.gameSpawn = gameMap.getGameSpawn();
40
- this.pushDataBuilder = PushData.builder(gameMap.getPushData());
+
41
+ if (gameMap.getPushData() == null) {
42
+ this.pushDataBuilder = PushData.builder();
43
+ this.pushDataBuilder
44
+ .add(PushEntry.groundEntry(Block.GLASS, 1))
45
+ .add(PushEntry.pushEntry(Block.GOLD_BLOCK, 1))
46
+ .add(PushEntry.pushEntry(Block.DIAMOND_BLOCK, 1))
47
+ .add(PushEntry.pushEntry(Block.EMERALD_BLOCK, 1));
48
+ } else{
49
+ this.pushDataBuilder = PushData.builder(gameMap.getPushData());
50
+ }
51
52
53
/**
0 commit comments