mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Fix some formatting concerns.
This commit is contained in:
parent
301d02c9c5
commit
574ed9aa41
@ -29,8 +29,8 @@ public final class Java8Detector {
|
|||||||
if (major <= 7) {
|
if (major <= 7) {
|
||||||
// Implicitly java 7 because we compile against 7, so this won't
|
// Implicitly java 7 because we compile against 7, so this won't
|
||||||
// even launch on 6.
|
// even launch on 6.
|
||||||
WorldEdit.logger
|
WorldEdit.logger.warning(
|
||||||
.warning("WorldEdit has detected you are using Java 7"
|
"WorldEdit has detected you are using Java 7"
|
||||||
+ " (based on detected version "
|
+ " (based on detected version "
|
||||||
+ Joiner.on('.').join(ver) + ").");
|
+ Joiner.on('.').join(ver) + ").");
|
||||||
WorldEdit.logger.warning(
|
WorldEdit.logger.warning(
|
||||||
|
@ -157,14 +157,16 @@ public class ForgeWorldEdit {
|
|||||||
if (!platform.isHookingEvents())
|
if (!platform.isHookingEvents())
|
||||||
return; // We have to be told to catch these events
|
return; // We have to be told to catch these events
|
||||||
|
|
||||||
if ((event instanceof PlayerInteractEvent.LeftClickBlock
|
boolean isLeftDeny = event instanceof PlayerInteractEvent.LeftClickBlock
|
||||||
&& ((PlayerInteractEvent.LeftClickBlock) event)
|
&& ((PlayerInteractEvent.LeftClickBlock) event)
|
||||||
.getUseItem() == Result.DENY)
|
.getUseItem() == Result.DENY;
|
||||||
|| (event instanceof PlayerInteractEvent.RightClickBlock
|
boolean isRightDeny =
|
||||||
|
event instanceof PlayerInteractEvent.RightClickBlock
|
||||||
&& ((PlayerInteractEvent.RightClickBlock) event)
|
&& ((PlayerInteractEvent.RightClickBlock) event)
|
||||||
.getUseItem() == Result.DENY)
|
.getUseItem() == Result.DENY;
|
||||||
|| event.getEntity().worldObj.isRemote)
|
if (isLeftDeny || isRightDeny || event.getEntity().worldObj.isRemote) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
WorldEdit we = WorldEdit.getInstance();
|
WorldEdit we = WorldEdit.getInstance();
|
||||||
ForgePlayer player = wrap((EntityPlayerMP) event.getEntityPlayer());
|
ForgePlayer player = wrap((EntityPlayerMP) event.getEntityPlayer());
|
||||||
|
Loading…
Reference in New Issue
Block a user