One extra token per column.

This commit is contained in:
UnknownShadow200 2017-07-25 19:12:51 +10:00
parent 36b8600d65
commit c95efd56f7
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ namespace MCGalaxy.Gui.Popups {
}
const int btnWidth = 130, btnHeight = 40, btnsPerCol = 8;
const int btnWidth = 110, btnHeight = 40, btnsPerCol = 9;
int index = 0;
void MakeButton(ChatToken token) {
int row = index / btnsPerCol, col = index % btnsPerCol;

View File

@ -313,7 +313,7 @@ namespace MCGalaxy.Commands.CPE {
if (def == null && block.BlockID < Block.CpeCount) {
def = DefaultSet.MakeCustomBlock(block.BlockID);
AddBlock(p, def, global, cmd, BlockDefinition.GlobalProps[block.Index]);
AddBlock(p, def, global, cmd, BlockDefinition.DefaultProps(block));
}
if (!ExistsInScope(def, block, global)) { MessageNoBlock(p, block, global, cmd); return; }