keep v6 mod compatibility (#5655)

This commit is contained in:
Sunny Kim 2021-07-28 06:08:29 +09:00 committed by GitHub
parent 00e3a59463
commit 235fee091e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -793,6 +793,11 @@ public class Block extends UnlockableContent{
}
clipSize = Math.max(clipSize, size * tilesize);
//only kept to ensure compatibility with v6 mods.
if(expanded){
clipSize += tilesize * 10f;
}
if(emitLight){
clipSize = Math.max(clipSize, lightRadius * 2f);