Fixed invoke method missing argument

Dieser Commit ist enthalten in:
IronApollo 2018-10-25 07:12:08 -04:00
Ursprung be73d29354
Commit 34c8ecc694

Datei anzeigen

@ -286,7 +286,7 @@ public final class Spigot_v1_13_R2 extends CachedBukkitAdapter implements Bukkit
} }
if (existing.e() != blockData.e() || existing.getMaterial().f() != blockData.getMaterial().f()) { if (existing.e() != blockData.e() || existing.getMaterial().f() != blockData.getMaterial().f()) {
try { try {
chunkSetTypeMethod.invoke(pos = new BlockPosition(x, y, z), blockData, false); chunkSetTypeMethod.invoke(nmsChunk, pos = new BlockPosition(x, y, z), blockData, false);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
logger.warning("Error when setting block!"); logger.warning("Error when setting block!");
e.printStackTrace(); e.printStackTrace();