Skip to content

Commit

Permalink
require checktemperature to be a loaded blockpos
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDeathlyCow committed Mar 21, 2024
1 parent 497f56e commit ff7626e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import net.minecraft.command.argument.BlockPosArgumentType;
import net.minecraft.command.argument.EntityArgumentType;
import net.minecraft.server.command.FillCommand;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.command.SetBlockCommand;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.text.Text;
import net.minecraft.util.math.BlockPos;
import org.jetbrains.annotations.Contract;
Expand Down Expand Up @@ -91,7 +94,7 @@ private static LiteralArgumentBuilder<ServerCommandSource> buildCommand() {
context -> {
return executeCheckTemperature(
context.getSource(),
BlockPosArgumentType.getBlockPos(
BlockPosArgumentType.getLoadedBlockPos(
context,
"location"
)
Expand All @@ -104,7 +107,7 @@ private static LiteralArgumentBuilder<ServerCommandSource> buildCommand() {
context -> {
return executeCheckTemperature(
context.getSource(),
BlockPosArgumentType.getBlockPos(
BlockPosArgumentType.getLoadedBlockPos(
context,
"location"
),
Expand Down

0 comments on commit ff7626e

Please sign in to comment.