mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2025-03-13 13:40:45 +01:00
Fixed the usage of setObject instead of setLocation breaks things
This commit is contained in:
parent
a8dcb206ff
commit
ee0f14f6ad
@ -1,8 +1,6 @@
|
||||
package com.bgsoftware.wildloaders.utils.database;
|
||||
|
||||
import com.bgsoftware.wildloaders.WildLoadersPlugin;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
@ -11,8 +9,6 @@ import java.util.List;
|
||||
|
||||
public final class QueryParameters {
|
||||
|
||||
private static final WildLoadersPlugin plugin = WildLoadersPlugin.getPlugin();
|
||||
|
||||
private final Query query;
|
||||
private final List<Object> parameters;
|
||||
|
||||
@ -39,6 +35,9 @@ public final class QueryParameters {
|
||||
}
|
||||
|
||||
public QueryParameters setObject(Object object){
|
||||
if(object instanceof Location)
|
||||
return setLocation((Location) object);
|
||||
|
||||
parameters.add(object);
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user