Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Added a workaround for hey0's getComplexBlock() returning a null when it should not.
Dieser Commit ist enthalten in:
Ursprung
ed2859c1de
Commit
263417550b
@ -81,6 +81,9 @@ public class SMServerInterface implements ServerInterface {
|
||||
public void setSignText(Vector pt, String[] text) {
|
||||
Sign signData = (Sign)etc.getServer().getComplexBlock(
|
||||
pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
||||
if (signData == null) {
|
||||
return;
|
||||
}
|
||||
for (byte i = 0; i < 4; i++) {
|
||||
signData.setText(i, text[i]);
|
||||
}
|
||||
@ -96,6 +99,9 @@ public class SMServerInterface implements ServerInterface {
|
||||
public String[] getSignText(Vector pt) {
|
||||
Sign signData = (Sign)etc.getServer().getComplexBlock(
|
||||
pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
||||
if (signData == null) {
|
||||
return new String[]{"", "", "", ""};
|
||||
}
|
||||
String[] text = new String[4];
|
||||
for (byte i = 0; i < 4; i++) {
|
||||
text[i] = signData.getText(i);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren