mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 00:58:04 +01:00
Temporary fix for island schem pasting.
Note that blocks are not pasted properly. The Clipboard class needs rewriting to 1.13.
This commit is contained in:
parent
a9da00478d
commit
acbcd27142
@ -260,7 +260,7 @@ public class Island implements DataObject {
|
||||
|
||||
/**
|
||||
* Returns the island range.
|
||||
* It is a convenience method that returns the exact same value than {@link Settings#getIslandDistance()}, although it has been saved into the Island object for easier access.
|
||||
* It is a convenience method that returns the exact same value than island range, although it has been saved into the Island object for easier access.
|
||||
* @return the island range
|
||||
* @see #getProtectionRange()
|
||||
*/
|
||||
|
@ -260,7 +260,9 @@ public class Clipboard {
|
||||
int y = location.getBlockY() + Integer.valueOf(pos[1]);
|
||||
int z = location.getBlockZ() + Integer.valueOf(pos[2]);
|
||||
// Default type is air
|
||||
Material material = Material.getMaterial(config.getString("type", "AIR"));
|
||||
Material mat = Material.getMaterial(config.getString("type", "AIR"));
|
||||
Material material = mat != null ? mat : Material.getMaterial(config.getString("type", "AIR"), true);
|
||||
|
||||
Block block = world.getBlockAt(x, y, z);
|
||||
if (config.getBoolean(ATTACHED)) {
|
||||
plugin.getServer().getScheduler().runTask(plugin, () -> setBlock(island, block, config, material));
|
||||
|
Loading…
Reference in New Issue
Block a user