Skip to content

Commit

Permalink
Update minigame to Minecraft 1.19.4 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 authored Mar 24, 2023
1 parent c0ae6d9 commit 82bcd31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.0.+'
id 'fabric-loom' version '1.1.+'
id 'maven-publish'
}

Expand All @@ -21,7 +21,7 @@ dependencies {

modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation 'xyz.nucleoid:plasmid:0.5+1.19.3-SNAPSHOT'
modImplementation 'xyz.nucleoid:plasmid:0.5+1.19.4-SNAPSHOT'
}

processResources {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.12
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.18
# Mod Properties
mod_version=1.0.0
maven_group=xyz.nucleoid
archives_base_name=slime-mould
# Dependencies
fabric_version=0.70.0+1.19.3
fabric_version=0.76.0+1.19.4
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private SlimeMouldPlate buildPlate(MapTemplate template, MapTemplateMetadata met
}

private int computePlateRadius(MapTemplate template, BlockBounds plateBounds) {
BlockPos plateCenter = new BlockPos(plateBounds.center());
BlockPos plateCenter = BlockPos.ofFloored(plateBounds.center());
BlockPos plateSize = plateBounds.size();
int plateRadius = Math.min(plateSize.getX(), plateSize.getZ()) / 2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public BlockPos getSpawnPos(double theta, double distance) {
double spawnX = plateCenter.x + Math.cos(theta) * distance;
double spawnZ = plateCenter.z - Math.sin(theta) * distance;

return new BlockPos(spawnX, plateY, spawnZ);
return BlockPos.ofFloored(spawnX, plateY, spawnZ);
}

public static Surface testSurface(Block block) {
Expand Down

0 comments on commit 82bcd31

Please sign in to comment.