mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Fix comment fetching on null plots
This commit is contained in:
parent
dc3c123010
commit
a9f9a2dca9
1 changed files with 4 additions and 4 deletions
|
@ -258,14 +258,14 @@ public class DBFunc {
|
|||
* @param comment
|
||||
*/
|
||||
public static void removeComment(final Plot plot, final PlotComment comment) {
|
||||
if (plot.temp) {
|
||||
if (plot != null && plot.temp) {
|
||||
return;
|
||||
}
|
||||
dbManager.removeComment(plot, comment);
|
||||
}
|
||||
|
||||
public static void clearInbox(final Plot plot, final String inbox) {
|
||||
if (plot.temp) {
|
||||
if (plot != null && plot.temp) {
|
||||
return;
|
||||
}
|
||||
dbManager.clearInbox(plot, inbox);
|
||||
|
@ -276,7 +276,7 @@ public class DBFunc {
|
|||
* @param comment
|
||||
*/
|
||||
public static void setComment(final Plot plot, final PlotComment comment) {
|
||||
if (plot.temp) {
|
||||
if (plot != null && plot.temp) {
|
||||
return;
|
||||
}
|
||||
dbManager.setComment(plot, comment);
|
||||
|
@ -286,7 +286,7 @@ public class DBFunc {
|
|||
* @param plot
|
||||
*/
|
||||
public static void getComments(final Plot plot, final String inbox, RunnableVal whenDone) {
|
||||
if (plot.temp) {
|
||||
if (plot != null && plot.temp) {
|
||||
return;
|
||||
}
|
||||
dbManager.getComments(plot, inbox, whenDone);
|
||||
|
|
Loading…
Reference in a new issue