Skip to content

Commit

Permalink
0.6.19
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtnt committed Dec 27, 2024
1 parent 74d9580 commit 0c1a51a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mod_name=Sign Me Up
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=BSD-3-Clause
# The mod version. See https://semver.org/
mod_version=0.6.18
mod_version=0.6.19
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/org/teacon/signmeup/command/OpCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.minecraft.commands.arguments.coordinates.Vec2Argument;
import net.minecraft.commands.arguments.coordinates.Vec3Argument;
import net.minecraft.commands.arguments.coordinates.WorldCoordinates;
import net.minecraft.core.SectionPos;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.Style;
import net.minecraft.server.level.ServerLevel;
Expand Down Expand Up @@ -87,7 +88,10 @@ private static int teleport(CommandContext<CommandSourceStack> context) {
ServerLevel level = Objects.requireNonNull(Objects.requireNonNull(ServerLifecycleHooks.getCurrentServer()).getLevel(Level.OVERWORLD));
player.teleportTo(
level,
location.x, level.getHeight(Heightmap.Types.WORLD_SURFACE_WG, (int) x, (int) z), location.z, Set.of(),
location.x, level.getChunk(
SectionPos.blockToSectionCoord((int) x),
SectionPos.blockToSectionCoord((int) z)
).getHeight(Heightmap.Types.WORLD_SURFACE_WG, (int) x, (int) z), location.z, Set.of(),
player.getYRot(), player.getXRot()
);
}
Expand Down

0 comments on commit 0c1a51a

Please sign in to comment.