Skip to content

Commit

Permalink
null check and meta tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 7, 2022
1 parent 59f3c35 commit 8577808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -3873,6 +3873,7 @@ else if (bal > goal) {
// @plugin BungeeCord
// @description
// Sends the player to the specified Bungee server.
// This also works with other Bungee-Messaging compatible proxy systems, such as Velocity.
// -->
if (mechanism.matches("send_to") && mechanism.hasValue()) {
if (!isOnline()) {
Expand Down
Expand Up @@ -847,7 +847,9 @@ public void setTrackingRange(Entity entity, int range) {
try {
ChunkMap map = ((CraftWorld) entity.getWorld()).getHandle().getChunkSource().chunkMap;
ChunkMap.TrackedEntity entry = map.entityMap.get(entity.getEntityId());
TRACKING_RANGE_SETTER.invoke(entry, range);
if (entry != null) {
TRACKING_RANGE_SETTER.invoke(entry, range);
}
}
catch (Throwable ex) {
Debug.echoError(ex);
Expand Down

0 comments on commit 8577808

Please sign in to comment.