mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fixes #1970
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package com.intellectualcrafters.plot.object;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class PlotId {
|
||||
/**
|
||||
* x value
|
||||
@ -77,6 +79,10 @@ public class PlotId {
|
||||
}
|
||||
}
|
||||
|
||||
public static PlotId of(@Nullable Plot plot) {
|
||||
return plot != null ? plot.getId() : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the PlotId from the HashCode<br>
|
||||
* Note: Only accurate for small x,z values (short)
|
||||
|
Reference in New Issue
Block a user