wrong message in /blockprops

This commit is contained in:
UnknownShadow200 2017-10-23 23:10:04 +11:00
parent 7a617d88e5
commit 1c530ff79b
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ namespace MCGalaxy.Commands.World {
Player.Message(p, "%H[scope] can be: %Score, global, level");
Player.Message(p, "%Hproperties: %Sportal, messageblock, rails, waterkills, lavakills, door, tdoor, " +
"killer, deathmessage, animalai, stackblock, opblock, odoor, drownable, grass, block");
"killer, deathmessage, animalai, stackblock, opblock, odoor, drownable, grass, dirt");
Player.Message(p, "%HType %T/Help BlockProps [property] %Hfor more details");
}

View File

@ -139,7 +139,7 @@ namespace MCGalaxy.Commands.Building {
Vec3S32 yEnd = m[0] + op.dy * (bmp.Height - 1);
if (lvl.IsValidPos(xEnd.X, xEnd.Y, xEnd.Z) && lvl.IsValidPos(yEnd.X, yEnd.Y, yEnd.Z)) return;
int resizedWidth = bmp.Width - LargestDelta(lvl, xEnd);
int resizedWidth = bmp.Width - LargestDelta(lvl, xEnd);
int resizedHeight = bmp.Height - LargestDelta(lvl, yEnd);
// Preserve aspect ratio of image
float ratioX = resizedWidth / (float)bmp.Width, ratioY = resizedHeight / (float)bmp.Height;