Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
fix: add null check for block targetted with inspect brush (#2443)
Dieser Commit ist enthalten in:
Ursprung
b9517a5cfb
Commit
90d52f39d9
@ -74,7 +74,12 @@ public class InspectBrush extends BrushTool {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
BlockVector3 target = getTarget(player, rightClick).toBlockPoint();
|
||||
Vector3 targetVector = getTarget(player, rightClick);
|
||||
if (targetVector == null) {
|
||||
player.print(Caption.of("worldedit.tool.no-block"));
|
||||
return true;
|
||||
}
|
||||
BlockVector3 target = targetVector.toBlockPoint();
|
||||
final int x = target.getBlockX();
|
||||
final int y = target.getBlockY();
|
||||
final int z = target.getBlockZ();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren