Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
F
ForgeEssentials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alynna Trypnotk
ForgeEssentials
Commits
fead538e
Commit
fead538e
authored
May 02, 2017
by
spacebuilder2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should fix #2258
parent
999c54fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ZonedPermissionHelper.java
...rgeessentials/permissions/core/ZonedPermissionHelper.java
+7
-2
No files found.
src/main/java/com/forgeessentials/permissions/core/ZonedPermissionHelper.java
View file @
fead538e
...
...
@@ -30,6 +30,7 @@ import net.minecraft.util.text.TextComponentString;
import
net.minecraft.util.text.TextComponentTranslation
;
import
net.minecraft.util.text.TextFormatting
;
import
net.minecraft.util.text.ITextComponent
;
import
net.minecraft.world.World
;
import
net.minecraftforge.common.DimensionManager
;
import
net.minecraftforge.common.MinecraftForge
;
import
net.minecraftforge.event.world.WorldEvent
;
...
...
@@ -755,7 +756,8 @@ public class ZonedPermissionHelper extends ServerEventHandler implements IPermis
public
boolean
hasPermission
(
GameProfile
player
,
String
permissionNode
,
@Nullable
IContext
context
)
{
UserIdent
ident
=
player
==
null
?
null
:
UserIdent
.
get
(
player
.
getId
());
int
dim
=
context
.
getWorld
().
provider
.
getDimension
();
World
w
=
context
!=
null
?
context
.
getWorld
()
:
null
;
int
dim
=
w
!=
null
?
w
.
provider
.
getDimension
()
:
0
;
WorldPoint
loc
=
null
;
WorldArea
area
=
null
;
...
...
@@ -765,7 +767,10 @@ public class ZonedPermissionHelper extends ServerEventHandler implements IPermis
{
AxisAlignedBB
areac
=
context
.
get
(
ContextKeys
.
AREA
);
area
=
new
WorldArea
(
dim
,
new
Point
(
areac
.
minX
,
areac
.
minY
,
areac
.
minZ
),
new
Point
(
areac
.
maxX
,
areac
.
maxY
,
areac
.
maxZ
));
if
(
areac
!=
null
)
{
area
=
new
WorldArea
(
dim
,
new
Point
(
areac
.
minX
,
areac
.
minY
,
areac
.
minZ
),
new
Point
(
areac
.
maxX
,
areac
.
maxY
,
areac
.
maxZ
));
}
}
else
if
(
context
instanceof
BlockPosContext
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment