Ref: height limit check (#4427)

- The notifyIfOutsideBuildArea method checks the limits and already includes sending the height.height_limit message. This does not need to be called again in the code.
This commit is contained in:
RedstoneFuture
2024-06-01 16:43:43 +02:00
committed by GitHub
parent 4839a83279
commit 215053e364
2 changed files with 5 additions and 31 deletions

View File

@ -679,10 +679,8 @@ public abstract class PlotArea implements ComponentLike {
TranslatableCaption.of("height.height_limit"),
TagResolver.builder()
.tag("minheight", Tag.inserting(Component.text(minBuildHeight)))
.tag(
"maxheight",
Tag.inserting(Component.text(maxBuildHeight))
).build()
.tag("maxheight", Tag.inserting(Component.text(maxBuildHeight)))
.build()
);
// Return true if "failed" as the method will always be inverted otherwise
return true;