fix #3540, update changelog

This commit is contained in:
Adrian Siekierka 2022-08-28 10:14:31 +02:00
parent e86201d116
commit 33eb8cb7fd
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@
* Fixed: [#2911] Inconsistent values used by getGameType() and setGameType() in Debug Card.
* (1.12.2) Fixed: [#3472] Incorrect 3D print lighting.
* Fixed: [#3226] Incorrect Hard Drive reported maximum stack size when formatted.
* Fixed: [#3084] Incorrect parsing of the 'maxSignalQueueSize' configuration option.
* Fixed: [#3184] Incorrect redstone card sides inside racks and computers.
* Fixed: [#3182] Incorrect reporting of entity inventory names in Transposer, plus other Transposer interaction issues.
* Fixed: Missing null check for Blood Magic integration.
@ -48,6 +49,7 @@
* Fixed: [#3249] NullPointerException when remote terminal is missing.
* Fixed: [#3401] 'rawSetForeground', 'rawSetBackground' not working correctly.
* Fixed: [#3265] Relay 'setStrength' unlimited upper bound. (JamesOrdner)
* (1.7.10) Fixed: [#3540] Server-side crash with Motion Sensor
* Fixed: [#1999] 'string.gsub' patterns now allow numbers.
* Fixed: [#3195] Tier 1 Wireless Cards not receiving messages.
* (1.7.10) Fixed: [#3239] Unnecessary/unwanted canEntityDestroy check in OpenComputers fake player.

View File

@ -111,7 +111,7 @@ class MotionSensor(val host: EnvironmentHost) extends prefab.ManagedEnvironment
// is pseudo-infrared driven (it only works for *living* entities, after
// all), so I think it makes more sense for it to work in the dark, too.
/* entity.getBrightness(0) > 0.2 && */ {
val target = entity.getPosition(1.0F)
val target = Vec3.createVectorHelper(entity.posX, entity.posY, entity.posZ)
isClearPath(target) || isClearPath(target.addVector(0, entity.getEyeHeight, 0))
}