mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-21 23:13:28 +01:00
Add nullcheck to laser render method
This commit is contained in:
parent
85a96171d5
commit
78258dce4e
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ public final class AssetUtil {
|
|||
|
||||
public static void renderLaser(PoseStack matrixStack, MultiBufferSource buffer, float offX, float offY, float offZ, float yaw, float pitch, float length, float rotationTime, int color, float alpha, float beamWidth) {
|
||||
Level world = Minecraft.getInstance().level;
|
||||
if (world == null) return;
|
||||
/* int r = (color >> 16) & 0xFF;
|
||||
int g = (color >> 8) & 0xFF;
|
||||
int b = color & 0xFF;
|
||||
|
|
Loading…
Reference in a new issue