mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-28 17:21:02 +01:00
Fix block stack duplicating in the database
This commit is contained in:
parent
cc66c46bc3
commit
85a7995420
@ -27,15 +27,16 @@ public class BlockStackImpl implements BlockStack {
|
||||
private XMaterial material;
|
||||
private Location location;
|
||||
|
||||
/**
|
||||
* Required for deserialization
|
||||
*/
|
||||
public BlockStackImpl() {
|
||||
}
|
||||
|
||||
public BlockStackImpl(XMaterial material, Location location) {
|
||||
this.material = material;
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public BlockStackImpl(XMaterial material, Location location, int amount) {
|
||||
this.amount = amount;
|
||||
this.material = material;
|
||||
this.location = location;
|
||||
this.id = UltimateStacker.getInstance().getDataManager().getNextId("blocks");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user