Position this mod as a port of CE instead of BCx. - Rename the mod to CE-modern (modid cemodern) and the package to net.kanawo.cemodern; the main class is now CEModern. - Move assets to assets/cemodern and rename the lang key and EMC save data to match. - Describe the mod as a port of CE in the README and mcmod.info. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
637 B
Java
23 lines
637 B
Java
package net.kanawo.cemodern.block;
|
|
|
|
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
|
|
|
import buildcraft.builders.schematics.SchematicBuilderLike;
|
|
|
|
/**
|
|
* Blueprint schematic that, like the Builder's, drops the build state, and also drops the owner, so a copy built by
|
|
* someone else does not draw on the original owner's EMC.
|
|
*/
|
|
public class SchematicEMCBuilder extends SchematicBuilderLike {
|
|
|
|
@Override
|
|
public void onNBTLoaded() {
|
|
super.onNBTLoaded();
|
|
|
|
if (tileNBT != null) {
|
|
tileNBT.removeTag(TileEMCBuilder.OWNER_MOST);
|
|
tileNBT.removeTag(TileEMCBuilder.OWNER_LEAST);
|
|
}
|
|
}
|
|
}
|