Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-07 03:50:06 +01:00
Fix some formatting concerns.
Dieser Commit ist enthalten in:
Ursprung
301d02c9c5
Commit
574ed9aa41
@ -29,8 +29,8 @@ public final class Java8Detector {
|
||||
if (major <= 7) {
|
||||
// Implicitly java 7 because we compile against 7, so this won't
|
||||
// even launch on 6.
|
||||
WorldEdit.logger
|
||||
.warning("WorldEdit has detected you are using Java 7"
|
||||
WorldEdit.logger.warning(
|
||||
"WorldEdit has detected you are using Java 7"
|
||||
+ " (based on detected version "
|
||||
+ Joiner.on('.').join(ver) + ").");
|
||||
WorldEdit.logger.warning(
|
||||
|
@ -157,14 +157,16 @@ public class ForgeWorldEdit {
|
||||
if (!platform.isHookingEvents())
|
||||
return; // We have to be told to catch these events
|
||||
|
||||
if ((event instanceof PlayerInteractEvent.LeftClickBlock
|
||||
boolean isLeftDeny = event instanceof PlayerInteractEvent.LeftClickBlock
|
||||
&& ((PlayerInteractEvent.LeftClickBlock) event)
|
||||
.getUseItem() == Result.DENY)
|
||||
|| (event instanceof PlayerInteractEvent.RightClickBlock
|
||||
.getUseItem() == Result.DENY;
|
||||
boolean isRightDeny =
|
||||
event instanceof PlayerInteractEvent.RightClickBlock
|
||||
&& ((PlayerInteractEvent.RightClickBlock) event)
|
||||
.getUseItem() == Result.DENY)
|
||||
|| event.getEntity().worldObj.isRemote)
|
||||
.getUseItem() == Result.DENY;
|
||||
if (isLeftDeny || isRightDeny || event.getEntity().worldObj.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
WorldEdit we = WorldEdit.getInstance();
|
||||
ForgePlayer player = wrap((EntityPlayerMP) event.getEntityPlayer());
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren