mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 06:24:27 +00:00
Migrate Albedo compat to caps, fixing NPEs on null lights on new Albedo
Fixes #2920, fixes #3040
This commit is contained in:
1 parent
6666cf1e23
commit
050d11a547
15 files changed
+117
-239
No files matched your search
@@ -39,8 +39,7 @@ import elucent.albedo.lighting.Light;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Optional.Interface(iface="elucent.albedo.lighting.ILightProvider", modid="albedo")
|
||||
public class EntityBabylonWeapon extends EntityThrowableCopy implements ILightProvider {
|
||||
public class EntityBabylonWeapon extends EntityThrowableCopy {
|
||||
|
||||
private static final String TAG_CHARGING = "charging";
|
||||
private static final String TAG_VARIETY = "variety";
|
||||
@@ -202,12 +201,6 @@ public class EntityBabylonWeapon extends EntityThrowableCopy implements ILightPr
|
||||
setRotation(cmp.getFloat(TAG_ROTATION));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Optional.Method(modid="albedo")
|
||||
public Light provideLight() {
|
||||
return Light.builder().pos(this).color(1F, 1F, 0F).radius(8).build();
|
||||
}
|
||||
|
||||
public boolean isCharging() {
|
||||
return dataManager.get(CHARGING);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user