PictureSign 1.2.0 - Safe-Mode, Redstone, Update MidnightLib

- Added Safe mode:
~ Only load images from imgur/imgbb
~ Enabled by default
- Initial Redstone functionality
~ If an unlit redstone torch is above or below the sign, the image will be hidden
~ Update MidnightLib to 0.2.9
This commit is contained in:
Motschen
2021-10-30 20:56:13 +02:00
parent 1dd1651e31
commit b3249b9664
8 changed files with 187 additions and 119 deletions

View File

@@ -33,4 +33,9 @@ public abstract class MixinSignBlockEntityRenderer implements BlockEntityRendere
public int getRenderDistance() {
return PictureSignConfig.signRenderDistance;
}
@Unique
@Override
public boolean rendersOutsideBoundingBox(SignBlockEntity sign) {
return PictureSignConfig.enabled && sign.getTextOnRow(0, false).getString().matches("(!PS:.*)");
}
}