File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/chat Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments