From 0acde4a8af1c190642c4745bb592706bdb40ee5a Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 15 Jan 2019 01:11:33 -0800 Subject: [PATCH] Why are these empty part 2 --- .../com/gmail/nossr50/database/FlatfileDatabaseManager.java | 1 + .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 1 + .../nossr50/util/blockmeta/chunkmeta/HashChunkManager.java | 2 +- .../nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index 96178b46d..59af86d4c 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -130,6 +130,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager { lastPlayed = Long.parseLong(character[37]) * Misc.TIME_CONVERSION_FACTOR; } catch (NumberFormatException e) { + e.printStackTrace(); } if (lastPlayed == 0) { OfflinePlayer player = mcMMO.p.getServer().getOfflinePlayer(name); diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index 1ebcabd5c..c906c4fae 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -1164,6 +1164,7 @@ public final class SQLDatabaseManager implements DatabaseManager { + "DROP INDEX `user`," + "ADD INDEX `user` (`user`(20) ASC)"); } catch (SQLException ex) { + ex.printStackTrace(); } finally { tryClose(resultSet); } diff --git a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java index c3a3f0af4..7667bbabd 100755 --- a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java +++ b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java @@ -151,7 +151,7 @@ public class HashChunkManager implements ChunkManager { try { chunkStore = readChunkStore(world, cx, cz); } - catch (Exception e) {} + catch (Exception e) { e.printStackTrace(); } if (chunkStore == null) { return; diff --git a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java index 6a0d179ad..d1866acab 100755 --- a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java +++ b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/PrimitiveChunkStore.java @@ -139,7 +139,7 @@ public class PrimitiveChunkStore implements ChunkStore { try { store[x][z][y] = temp[x][y][z]; } - catch (Exception e) {} + catch (Exception e) { e.printStackTrace(); } } } }