further variable encapsulation
This commit is contained in:
@@ -58,7 +58,7 @@ public class PixelBlockDatabase {
|
||||
}
|
||||
|
||||
public void deletePixelBlock(PixelBlock pixelBlock) {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(Main.plugin, () -> {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(Main.plugin(), () -> {
|
||||
try {
|
||||
this.deletePixelBlock.setString(1, pixelBlock.getBlockUUID().toString());
|
||||
this.deletePixelBlock.executeUpdate();
|
||||
@@ -69,7 +69,7 @@ public class PixelBlockDatabase {
|
||||
}
|
||||
|
||||
public void savePixelBlock(PixelBlock pixelBlock) {
|
||||
Bukkit.getScheduler().runTask(Main.plugin, () -> {
|
||||
Bukkit.getScheduler().runTask(Main.plugin(), () -> {
|
||||
try {
|
||||
this.insertOrReplacePixelBlock.setString(1, pixelBlock.getBlockUUID().toString());
|
||||
this.insertOrReplacePixelBlock.setString(2, pixelBlock.getOwnerUUID().toString());
|
||||
|
||||
Reference in New Issue
Block a user