Skip to content

Commit be5f422

Browse files
committed
AxisAlignedBB re-writed to minecraft 1.15.2.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent d2501c0 commit be5f422

File tree

1 file changed

+6
-6
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/chat

1 file changed

+6
-6
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/chat/EntryPoint.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@ class EntryPoint : EssBase() {
276276
if (!ChatUtils.isGlobalChat(event)) {
277277
val players = event.player.serverWorld.getEntitiesWithinAABB(
278278
event.player.entity.javaClass, AxisAlignedBB(
279-
event.player.posX - ChatModelUtils.chatModel.messaging.localChatRange / 2,
280-
event.player.posY - ChatModelUtils.chatModel.messaging.localChatRange / 2,
281-
event.player.posZ - ChatModelUtils.chatModel.messaging.localChatRange / 2,
282-
event.player.posX + ChatModelUtils.chatModel.messaging.localChatRange / 2,
283-
event.player.posY + ChatModelUtils.chatModel.messaging.localChatRange / 2,
284-
event.player.posZ + ChatModelUtils.chatModel.messaging.localChatRange / 2
279+
event.player.positionVec.x - ChatModelUtils.chatModel.messaging.localChatRange / 2,
280+
event.player.positionVec.y - ChatModelUtils.chatModel.messaging.localChatRange / 2,
281+
event.player.positionVec.z - ChatModelUtils.chatModel.messaging.localChatRange / 2,
282+
event.player.positionVec.x + ChatModelUtils.chatModel.messaging.localChatRange / 2,
283+
event.player.positionVec.y + ChatModelUtils.chatModel.messaging.localChatRange / 2,
284+
event.player.positionVec.z + ChatModelUtils.chatModel.messaging.localChatRange / 2
285285
)
286286
)
287287
players.forEach {

0 commit comments

Comments
 (0)