diff --git a/src/main/java/me/taylorkelly/bigbrother/datasource/DataBlockSender.java b/src/main/java/me/taylorkelly/bigbrother/datasource/DataBlockSender.java index 2c5d4bf..6a674ce 100644 --- a/src/main/java/me/taylorkelly/bigbrother/datasource/DataBlockSender.java +++ b/src/main/java/me/taylorkelly/bigbrother/datasource/DataBlockSender.java @@ -44,6 +44,12 @@ public static void offer(BBDataBlock dataBlock) { private static boolean sendBlocksSQL(Collection collection, WorldManager manager) { // Try to refactor most of these into the table managers. + // Perform a NOP if nothing's happened. + if(SENDING.size()==0) { + // Hopefully this'll work with all DBMSes or I'll start choking bitches. + BBDB.executeQuery("SELECT 1"); + return true; + } //H2 fix... if (BBDB.usingDBMS(DBMS.H2)) { for (BBDataBlock block : collection) {