mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-01-27 22:32:30 +01:00
Hide entity deserialization errors unless using development branch (fixes #552)
This commit is contained in:
parent
3d32320a33
commit
957bf70c26
@ -12,6 +12,7 @@ import org.bukkit.block.BlockState;
|
|||||||
import org.bukkit.util.io.BukkitObjectInputStream;
|
import org.bukkit.util.io.BukkitObjectInputStream;
|
||||||
import org.bukkit.util.io.BukkitObjectOutputStream;
|
import org.bukkit.util.io.BukkitObjectOutputStream;
|
||||||
|
|
||||||
|
import net.coreprotect.config.ConfigHandler;
|
||||||
import net.coreprotect.database.Database;
|
import net.coreprotect.database.Database;
|
||||||
|
|
||||||
public class EntityStatement {
|
public class EntityStatement {
|
||||||
@ -64,8 +65,10 @@ public class EntityStatement {
|
|||||||
|
|
||||||
resultSet.close();
|
resultSet.close();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) { // only display this exception on development branch
|
||||||
e.printStackTrace();
|
if (!ConfigHandler.EDITION_BRANCH.contains("-dev")) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user