Skip to content

Commit da6601d

Browse files
Description correction
1 parent 569a7cc commit da6601d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/java/me/general_breddok/blockdisplaycreator/command/capi/BlockDisplayCreatorCAPICommand.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ public void register() {
196196
.withStringTooltipMapper(option -> {
197197
String tooltip = switch (option) {
198198
case REPLACE_CUSTOM_BLOCK ->
199-
"Replaces existing custom blocks at the location (if there is already a custom block placed there)";
199+
"Replaces an existing custom block at the target location";
200200
case LOAD_CHUNK ->
201-
"Loads the chunk where the block is placed (if not already loaded)";
201+
"Loads the chunk before placing the block, if needed";
202202
case BREAK_SOLID_MATERIAL ->
203-
"Allows breaking blocks with solid materials (if location is not air or liquid)";
203+
"Destroys a solid vanilla block at the target location, if present";
204204
case SILENT_PLACE ->
205-
"Places the block without sound";
205+
"Suppresses block placement sounds";
206206
};
207207
return new StringTooltip(option.name().toLowerCase(), Tooltip.messageFromString(tooltip));
208208
})
@@ -295,9 +295,9 @@ public void register() {
295295
.withStringTooltipMapper(option -> {
296296
String tooltip = switch (option) {
297297
case DROP_ITEM ->
298-
"Drops the item when breaking the block";
298+
"Drops the corresponding item upon breaking";
299299
case SILENT_BREAK ->
300-
"Breaks the block without sound";
300+
"Suppresses block breaking sounds";
301301
};
302302
return new StringTooltip(option.name().toLowerCase(), Tooltip.messageFromString(tooltip));
303303
})

src/main/java/me/general_breddok/blockdisplaycreator/custom/block/BDCCustomBlockService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public CustomBlock placeBlock(@NotNull AbstractCustomBlock abstractCustomBlock,
246246
if (loadChunk) {
247247
location.getChunk().load();
248248
} else {
249-
throw new IllegalArgumentException("Location " + location.getX() + ", " + location.getY() + ", " + location.getZ() + " " + " in world " + world.getName() + " is not loaded. Use CustomBlockPlaceOption.LOAD_CHUNK to load it automatically.");
249+
throw new IllegalArgumentException("Location " + location.getX() + ", " + location.getY() + ", " + location.getZ() + " " + " in world " + world.getName() + " is not loaded. Use load_chunk option to load it automatically.");
250250
}
251251
}
252252

@@ -257,7 +257,7 @@ public CustomBlock placeBlock(@NotNull AbstractCustomBlock abstractCustomBlock,
257257
if (breakSolidMaterial) {
258258
block.setType(centralMaterial);
259259
} else {
260-
throw new IllegalArgumentException("Cannot place custom block at " + location.getBlockX() + ", " + location.getBlockY() + ", " + location.getBlockZ() + " in world \"" + world.getName() + "\" because the block is solid and CustomBlockPlaceOption.BREAK_SOLID_MATERIAL is not set.");
260+
throw new IllegalArgumentException("Cannot place custom block at " + location.getBlockX() + ", " + location.getBlockY() + ", " + location.getBlockZ() + " in world \"" + world.getName() + "\" because the block is solid and break_solid_material option is not set.");
261261
}
262262
} else {
263263
block.setType(centralMaterial);
@@ -268,7 +268,7 @@ public CustomBlock placeBlock(@NotNull AbstractCustomBlock abstractCustomBlock,
268268
if (replaceCustomBlock) {
269269
this.breakBlock(this.getCustomBlock(location), player);
270270
} else {
271-
throw new IllegalArgumentException("Cannot place custom block at " + location.getBlockX() + ", " + location.getBlockY() + ", " + location.getBlockZ() + " in world " + world.getName() + " because a custom block is already present at this location. Use CustomBlockPlaceOption.REPLACE_CUSTOM_BLOCK to replace it.");
271+
throw new IllegalArgumentException("Cannot place custom block at " + location.getBlockX() + ", " + location.getBlockY() + ", " + location.getBlockZ() + " in world " + world.getName() + " because a custom block is already present at this location. Use replace_custom_block option to replace it.");
272272
}
273273
}
274274

0 commit comments

Comments
 (0)