This commit is contained in:
parent
8941461874
commit
6382869176
@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
**Beta 0.2.1**
|
||||
* Fix Solar Panel Crash
|
||||
|
||||
**Beta 0.2.0**
|
||||
* Add New Textures
|
||||
* Add Russian Translations
|
||||
|
@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
|
||||
fabric_loader_version = 0.9.0+build.204
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 0.2.0
|
||||
mod_version = 0.2.1
|
||||
maven_group = com.thebrokenrail
|
||||
|
||||
# Dependencies
|
||||
|
@ -26,7 +26,7 @@ public class SolarPanelBlockEntity extends EnergyGeneratorBlockEntity {
|
||||
for (Direction side : Direction.values()) {
|
||||
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
|
||||
|
Reference in New Issue
Block a user