add a stack limit
This commit is contained in:
parent
5496a5d47e
commit
2e13ef34f8
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ void control_lclick(double cx, double cy, vec3 pos, struct item *inv) {
|
|||
inv[i].id = cube;
|
||||
inv[i].count = 0;
|
||||
}
|
||||
if (inv[i].id == cube) {
|
||||
if (inv[i].id == cube && inv[i].count < 64) {
|
||||
inv[i].count++;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue