mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
Revive CapabilityProvider on entity revive. Madders should NOT need this, as caps are copied via NBT.
This commit is contained in:
1 parent
f5375783c6
commit
18400e8457
3 files changed
+11
-4
No files matched your search
@@ -106,6 +106,11 @@ public abstract class CapabilityProvider<B extends CapabilityProvider<B>> implem
|
||||
disp.invalidate();
|
||||
}
|
||||
|
||||
protected void reviveCaps()
|
||||
{
|
||||
this.valid = true; //Stupid players don't copy the entity when transporting across worlds.
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap, @Nullable EnumFacing side)
|
||||
|
||||
Reference in new issue
Block a user