Skip to content

Commit

Permalink
💐 Make The Towers compile on 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugman76 committed Mar 26, 2023
1 parent ba47e88 commit 101e498
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.12
fabric_version=0.70.0+1.19.3
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.18
fabric_version=0.76.0+1.19.4

# Mod Properties
mod_version=2.1.1
mod_version=2.1.2
maven_group=com.hugman
archives_base_name=the_towers

# check this on https://nucleoid.xyz/use/
plasmid_version=0.5+1.19.3-SNAPSHOT
plasmid_version=0.5+1.19.4-SNAPSHOT
6 changes: 3 additions & 3 deletions src/main/java/com/hugman/the_towers/game/TowersWaiting.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private void enable() {
};

Vec3d pos = this.map.rules();
this.world.getChunk(new BlockPos(pos));
this.world.getChunk(BlockPos.ofFloored(pos));
WorldHologram hologram = Holograms.create(this.world, pos, GUIDE_LINES);
hologram.setAlignment(AbstractHologram.VerticalAlign.TOP);
hologram.show();
Expand All @@ -95,8 +95,8 @@ private ActionResult killPlayer(ServerPlayerEntity player, DamageSource source)
}

private void tpPlayer(ServerPlayerEntity player) {
BlockPos pos = new BlockPos(this.map.spawn());
ChunkPos chunkPos = new ChunkPos(pos.getX() >> 4, pos.getZ() >> 4);
var pos = this.map.spawn();
ChunkPos chunkPos = new ChunkPos((int)pos.getX() >> 4, (int)pos.getZ() >> 4);
this.world.getChunkManager().addTicket(ChunkTicketType.POST_TELEPORT, chunkPos, 1, player.getId());
player.teleport(this.world, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 0.0F, 0.0F);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static TowersMap fromTemplate(MapTemplate template, TowersConfig config)
List<Generator> generators = new ArrayList<>();
Map<GameTeamKey, TeamRegion> teamRegions = new HashMap<>();

for(TemplateRegion region : metadata.getRegions("generator").collect(Collectors.toList())) {
for(TemplateRegion region : metadata.getRegions("generator").toList()) {
generators.add(Generator.fromTemplate(region));
}

Expand Down

0 comments on commit 101e498

Please sign in to comment.