mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +01:00
Changed version number
This commit is contained in:
parent
264baf10e3
commit
9427bc7773
@ -359,7 +359,10 @@ public enum C {
|
||||
*/
|
||||
public String s() {
|
||||
if(PlotMain.translations != null){
|
||||
this.s = PlotMain.translations.getString(this.toString());
|
||||
String t = PlotMain.translations.getString(this.toString());
|
||||
if (t!=null) {
|
||||
this.s = t;
|
||||
}
|
||||
}
|
||||
if (this.s.length() < 1) {
|
||||
return this.d.replace("\\n", "\n");
|
||||
|
@ -115,7 +115,8 @@ public class PlotHelper {
|
||||
|
||||
PlotId id = new PlotId(x, y);
|
||||
Plot plot = PlotMain.getPlots(world).get(id);
|
||||
|
||||
Plot plot2 = null;
|
||||
|
||||
if (lx) {
|
||||
if (ly) {
|
||||
if (!plot.settings.getMerged(1) || !plot.settings.getMerged(2)) {
|
||||
@ -125,7 +126,7 @@ public class PlotHelper {
|
||||
}
|
||||
if (!plot.settings.getMerged(1)) {
|
||||
changed = true;
|
||||
Plot plot2 = PlotMain.getPlots(world).get(new PlotId(x + 1, y));
|
||||
plot2 = PlotMain.getPlots(world).get(new PlotId(x + 1, y));
|
||||
mergePlot(world, plot, plot2);
|
||||
plot.settings.setMerged(1, true);
|
||||
plot2.settings.setMerged(3, true);
|
||||
@ -134,7 +135,7 @@ public class PlotHelper {
|
||||
if (ly) {
|
||||
if (!plot.settings.getMerged(2)) {
|
||||
changed = true;
|
||||
Plot plot2 = PlotMain.getPlots(world).get(new PlotId(x, y + 1));
|
||||
plot2 = PlotMain.getPlots(world).get(new PlotId(x, y + 1));
|
||||
mergePlot(world, plot, plot2);
|
||||
plot.settings.setMerged(2, true);
|
||||
plot2.settings.setMerged(0, true);
|
||||
@ -142,7 +143,10 @@ public class PlotHelper {
|
||||
}
|
||||
if (changed) {
|
||||
result = true;
|
||||
DBFunc.setMerged(world.getName(), plot, plot.settings.getMerged());
|
||||
DBFunc.setMerged(world.getName(), plot, plot.settings.getMerged());
|
||||
if (plot2!=null) {
|
||||
DBFunc.setMerged(world.getName(), plot2, plot2.settings.getMerged());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: PlotSquared
|
||||
main: com.intellectualcrafters.plot.PlotMain
|
||||
version: 2.1
|
||||
version: 2.1.1
|
||||
load: STARTUP
|
||||
description: >
|
||||
Easy, yet powerful Plot World generation and management.
|
||||
|
Loading…
Reference in New Issue
Block a user