Hotfix Testarena NPE
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
c164c7ebfe
Commit
0604d4b725
@ -247,6 +247,9 @@ public interface Recorder {
|
|||||||
|
|
||||||
default void blueSchem(int schemId) {
|
default void blueSchem(int schemId) {
|
||||||
try {
|
try {
|
||||||
|
if(schemId == 0)
|
||||||
|
throw new IOException();
|
||||||
|
|
||||||
write(0xb3, schemId, Schematic.getSchemFromDB(schemId).schemData());
|
write(0xb3, schemId, Schematic.getSchemFromDB(schemId).schemData());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Bukkit.getLogger().log(Level.SEVERE, "Could not embed schematic", e);
|
Bukkit.getLogger().log(Level.SEVERE, "Could not embed schematic", e);
|
||||||
@ -256,6 +259,9 @@ public interface Recorder {
|
|||||||
|
|
||||||
default void redSchem(int schemId) {
|
default void redSchem(int schemId) {
|
||||||
try {
|
try {
|
||||||
|
if(schemId == 0)
|
||||||
|
throw new IOException();
|
||||||
|
|
||||||
write(0xb4, schemId, Schematic.getSchemFromDB(schemId).schemData());
|
write(0xb4, schemId, Schematic.getSchemFromDB(schemId).schemData());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Bukkit.getLogger().log(Level.SEVERE, "Could not embed schematic", e);
|
Bukkit.getLogger().log(Level.SEVERE, "Could not embed schematic", e);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren