Compare commits
2 Commits
7a3980555f
...
1210047197
Author | SHA1 | Date |
---|---|---|
ceze88 | 1210047197 | |
TeamHR | f6461167b7 |
|
@ -124,7 +124,7 @@ public class BlockListeners implements Listener {
|
||||||
player.getWorld().dropItemNaturally(block.getLocation(), stack.getMaterial().parseItem());
|
player.getWorld().dropItemNaturally(block.getLocation(), stack.getMaterial().parseItem());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (stack.getAmount() == 0) {
|
if (stack.getAmount() == 1) {
|
||||||
//Remove stack
|
//Remove stack
|
||||||
stack.destroy();
|
stack.destroy();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class BlockStackImpl implements BlockStack {
|
||||||
// The id that identifies this stack in the database.
|
// The id that identifies this stack in the database.
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
private int amount = 1;
|
private int amount = 2;
|
||||||
private XMaterial material;
|
private XMaterial material;
|
||||||
private Location location;
|
private Location location;
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ public class BlockStackImpl implements BlockStack {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setAmount(int amount) {
|
public void setAmount(int amount) {
|
||||||
if (amount < 1) {
|
if (amount == 1) {
|
||||||
destroy();
|
destroy();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue