This commit is contained in:
parent
8941461874
commit
6382869176
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**Beta 0.2.1**
|
||||||
|
* Fix Solar Panel Crash
|
||||||
|
|
||||||
**Beta 0.2.0**
|
**Beta 0.2.0**
|
||||||
* Add New Textures
|
* Add New Textures
|
||||||
* Add Russian Translations
|
* Add Russian Translations
|
||||||
|
@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
fabric_loader_version = 0.9.0+build.204
|
fabric_loader_version = 0.9.0+build.204
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.2.0
|
mod_version = 0.2.1
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -26,7 +26,7 @@ public class SolarPanelBlockEntity extends EnergyGeneratorBlockEntity {
|
|||||||
for (Direction side : Direction.values()) {
|
for (Direction side : Direction.values()) {
|
||||||
light = Math.max(light, getLight(side));
|
light = Math.max(light, getLight(side));
|
||||||
}
|
}
|
||||||
return (int) (((float) light) * MathHelper.cos(Objects.requireNonNull(getWorld()).getSkyAngleRadians(1f)));
|
return (int) (((float) light) * Math.min(0, MathHelper.cos(Objects.requireNonNull(getWorld()).getSkyAngleRadians(1f))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user