mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 14:48:34 +00:00
Minor changes
This commit is contained in:
@ -19,8 +19,6 @@
|
||||
|
||||
package com.sk89q.worldedit;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import com.boydti.fawe.Fawe;
|
||||
import com.boydti.fawe.config.Settings;
|
||||
import com.boydti.fawe.object.FaweInputStream;
|
||||
@ -99,6 +97,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
/**
|
||||
* Stores session information.
|
||||
*/
|
||||
@ -919,6 +919,14 @@ public class LocalSession implements TextureHolder {
|
||||
return selector.getPrimaryPosition();
|
||||
}
|
||||
|
||||
public void setPlaceAtPos1(boolean placeAtPos1) {
|
||||
this.placeAtPos1 = placeAtPos1;
|
||||
}
|
||||
|
||||
public boolean isPlaceAtPos1() {
|
||||
return placeAtPos1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle placement position.
|
||||
*
|
||||
@ -1086,7 +1094,8 @@ public class LocalSession implements TextureHolder {
|
||||
public void setTool(ItemType item, @Nullable Tool tool) throws InvalidToolBindException {
|
||||
if (item.hasBlockType()) {
|
||||
throw new InvalidToolBindException(item, "Blocks can't be used");
|
||||
} else if (tool instanceof SelectionWand) {
|
||||
}
|
||||
if (tool instanceof SelectionWand) {
|
||||
changeTool(this.wandItem, this.wandItem = item, tool);
|
||||
setDirty();
|
||||
return;
|
||||
@ -1118,14 +1127,6 @@ public class LocalSession implements TextureHolder {
|
||||
}
|
||||
}
|
||||
|
||||
public void setPlaceAtPos1(boolean placeAtPos1) {
|
||||
this.placeAtPos1 = placeAtPos1;
|
||||
}
|
||||
|
||||
public boolean isPlaceAtPos1() {
|
||||
return placeAtPos1;
|
||||
}
|
||||
|
||||
public void setTool(BaseItem item, @Nullable Tool tool, Player player) throws InvalidToolBindException {
|
||||
ItemType type = item.getType();
|
||||
if (type.hasBlockType() && type.getBlockType().getMaterial().isAir()) {
|
||||
|
Reference in New Issue
Block a user