File tree Expand file tree Collapse file tree
java/ms/kevi/plotplugin/manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 <groupId >ms.kevi</groupId >
88 <artifactId >plotplugin</artifactId >
9- <version >1.2.0 </version >
9+ <version >1.2.1 </version >
1010
1111 <properties >
1212 <maven .compiler.source>17</maven .compiler.source>
2626 <dependency >
2727 <groupId >cn.powernukkitx</groupId >
2828 <artifactId >powernukkitx</artifactId >
29- <version >1.19.20-r1 </version >
29+ <version >1.19.20-r4 </version >
3030 <scope >compile</scope >
3131 </dependency >
3232 <dependency >
Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ public Plot getMergedPlot(int x, int z) {
127127 final int plotSize = this .levelSettings .getPlotSize ();
128128 final int totalSize = this .levelSettings .getTotalSize ();
129129
130- final int idX = x / totalSize ;
131- final int idZ = z / totalSize ;
130+ final int idX = x >= 0 ? x / totalSize : ( x / totalSize ) - 1 ;
131+ final int idZ = x >= 0 ? z / totalSize : ( z / totalSize ) - 1 ;
132132
133133 final int difX = x >= 0 ? x % totalSize : Math .abs ((x - plotSize + 1 ) % totalSize );
134134 final int difZ = z >= 0 ? z % totalSize : Math .abs ((z - plotSize + 1 ) % totalSize );
@@ -159,8 +159,8 @@ private PlotId getPlotIdByPos(int x, int z) {
159159 final int plotSize = this .levelSettings .getPlotSize ();
160160 final int totalSize = plotSize + this .levelSettings .getRoadSize ();
161161
162- final int idX = x / totalSize ;
163- final int idZ = z / totalSize ;
162+ final int idX = x >= 0 ? x / totalSize : ( x / totalSize ) - 1 ;
163+ final int idZ = x >= 0 ? z / totalSize : ( z / totalSize ) - 1 ;
164164
165165 final int difX = x >= 0 ? x % totalSize : Math .abs ((x - plotSize + 1 ) % totalSize );
166166 final int difZ = z >= 0 ? z % totalSize : Math .abs ((z - plotSize + 1 ) % totalSize );
Original file line number Diff line number Diff line change 11name : Plots
2- version : " 1.2.0 "
2+ version : " 1.2.1 "
33api : [ "1.0.13" ]
44author : Kevims
55main : ms.kevi.plotplugin.PlotPlugin
You can’t perform that action at this time.
0 commit comments