mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-22 16:49:14 +00:00
Merge branch 'master' into printWrongSpawner
This commit is contained in:
@@ -156,6 +156,8 @@ public class IrisSettings {
|
|||||||
public int spinh = -20;
|
public int spinh = -20;
|
||||||
public int spins = 7;
|
public int spins = 7;
|
||||||
public int spinb = 8;
|
public int spinb = 8;
|
||||||
|
public String cartographerMessage = "Iris does not allow cartographers in its world due to crashes.";
|
||||||
|
|
||||||
|
|
||||||
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
|
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
|
||||||
public boolean canUseCustomColors(VolmitSender volmitSender) {
|
public boolean canUseCustomColors(VolmitSender volmitSender) {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
package com.volmit.iris.core.service;
|
package com.volmit.iris.core.service;
|
||||||
|
|
||||||
import com.volmit.iris.Iris;
|
import com.volmit.iris.Iris;
|
||||||
|
import com.volmit.iris.core.IrisSettings;
|
||||||
import com.volmit.iris.core.tools.IrisToolbelt;
|
import com.volmit.iris.core.tools.IrisToolbelt;
|
||||||
import com.volmit.iris.engine.object.IrisDimension;
|
import com.volmit.iris.engine.object.IrisDimension;
|
||||||
import com.volmit.iris.util.format.C;
|
import com.volmit.iris.util.format.C;
|
||||||
@@ -70,7 +71,7 @@ public class VillageSVC implements IrisService {
|
|||||||
|
|
||||||
List<Player> playersInWorld = event.getEntity().getWorld().getPlayers();
|
List<Player> playersInWorld = event.getEntity().getWorld().getPlayers();
|
||||||
|
|
||||||
String message = C.GOLD + "Iris does not allow cartographers in its world due to crashes.";
|
String message = C.GOLD + IrisSettings.get().getGeneral().cartographerMessage;
|
||||||
|
|
||||||
Iris.info("Cancelled Cartographer Villager to prevent server crash at " + eventLocation + "!");
|
Iris.info("Cancelled Cartographer Villager to prevent server crash at " + eventLocation + "!");
|
||||||
|
|
||||||
|
|||||||
@@ -552,7 +552,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
public void execute(Future<Chunk> chunkFuture) {
|
public void execute(Future<Chunk> chunkFuture) {
|
||||||
try {
|
try {
|
||||||
chunkFuture.get();
|
chunkFuture.get();
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException ignored) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user