Finally fixed a dumb sync issue :D
This commit is contained in:
parent
119cdd01b4
commit
51909df663
|
@ -4,9 +4,8 @@
|
|||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="9d600e86-9aa6-49ee-bbc5-e23128c6a4d1" name="Changes" comment="Its pretty much finished?">
|
||||
<list default="true" id="9d600e86-9aa6-49ee-bbc5-e23128c6a4d1" name="Changes" comment="welll it seems there is a fabric api bug">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/gradle.properties" beforeDir="false" afterPath="$PROJECT_DIR$/gradle.properties" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/main/java/blackfur/tastytoasters/block/ToasterBlockEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/blackfur/tastytoasters/block/ToasterBlockEntity.java" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
@ -100,7 +99,7 @@
|
|||
<recent name="$PROJECT_DIR$/Temp" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager" selected="Gradle.tastytoasters [migrateMappings] (2)">
|
||||
<component name="RunManager" selected="Gradle.tastytoasters [runClient]">
|
||||
<configuration name="tastytoasters [buildDependents]" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
|
||||
<ExternalSystemSettings>
|
||||
<option name="executionName" />
|
||||
|
@ -143,50 +142,6 @@
|
|||
<DebugAllEnabled>false</DebugAllEnabled>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="tastytoasters [migrateMappings] (1)" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
|
||||
<ExternalSystemSettings>
|
||||
<option name="executionName" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="externalSystemIdString" value="GRADLE" />
|
||||
<option name="scriptParameters" value="" />
|
||||
<option name="taskDescriptions">
|
||||
<list />
|
||||
</option>
|
||||
<option name="taskNames">
|
||||
<list>
|
||||
<option value="migrateMappings" />
|
||||
<option value="--mappings" />
|
||||
<option value=""1.18.1+build.17"" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="vmOptions" />
|
||||
</ExternalSystemSettings>
|
||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
||||
<DebugAllEnabled>false</DebugAllEnabled>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="tastytoasters [migrateMappings] (2)" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
|
||||
<ExternalSystemSettings>
|
||||
<option name="executionName" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="externalSystemIdString" value="GRADLE" />
|
||||
<option name="scriptParameters" />
|
||||
<option name="taskDescriptions">
|
||||
<list />
|
||||
</option>
|
||||
<option name="taskNames">
|
||||
<list>
|
||||
<option value="migrateMappings" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="vmOptions" />
|
||||
</ExternalSystemSettings>
|
||||
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
|
||||
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
||||
<DebugAllEnabled>false</DebugAllEnabled>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="tastytoasters [migrateMappings]" type="GradleRunConfiguration" factoryName="Gradle">
|
||||
<ExternalSystemSettings>
|
||||
<option name="executionName" />
|
||||
|
@ -215,7 +170,7 @@
|
|||
<option name="executionName" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="externalSystemIdString" value="GRADLE" />
|
||||
<option name="scriptParameters" />
|
||||
<option name="scriptParameters" value="" />
|
||||
<option name="taskDescriptions">
|
||||
<list />
|
||||
</option>
|
||||
|
@ -231,10 +186,16 @@
|
|||
<DebugAllEnabled>false</DebugAllEnabled>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<list>
|
||||
<item itemvalue="Application.Minecraft Client" />
|
||||
<item itemvalue="Application.Minecraft Server" />
|
||||
<item itemvalue="Gradle.tastytoasters [migrateMappings]" />
|
||||
<item itemvalue="Gradle.tastytoasters [build]" />
|
||||
<item itemvalue="Gradle.tastytoasters [buildDependents]" />
|
||||
<item itemvalue="Gradle.tastytoasters [runClient]" />
|
||||
</list>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Gradle.tastytoasters [migrateMappings] (2)" />
|
||||
<item itemvalue="Gradle.tastytoasters [migrateMappings] (1)" />
|
||||
<item itemvalue="Gradle.tastytoasters [buildDependents]" />
|
||||
<item itemvalue="Gradle.tastytoasters [build]" />
|
||||
<item itemvalue="Gradle.tastytoasters [runClient]" />
|
||||
|
@ -306,7 +267,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1638808282960</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="9" />
|
||||
<task id="LOCAL-00009" summary="welll it seems there is a fabric api bug">
|
||||
<created>1641316900137</created>
|
||||
<option name="number" value="00009" />
|
||||
<option name="presentableId" value="LOCAL-00009" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1641316900137</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="10" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
|
@ -330,6 +298,7 @@
|
|||
<MESSAGE value="commit so I don't loose progress" />
|
||||
<MESSAGE value="toasting now fully implemented :DDD" />
|
||||
<MESSAGE value="Its pretty much finished?" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="Its pretty much finished?" />
|
||||
<MESSAGE value="welll it seems there is a fabric api bug" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="welll it seems there is a fabric api bug" />
|
||||
</component>
|
||||
</project>
|
|
@ -8,10 +8,9 @@ import net.minecraft.nbt.NbtCompound;
|
|||
import net.minecraft.particle.ParticleTypes;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import net.fabricmc.fabric.api.block.entity.BlockEntityClientSerializable;
|
||||
|
||||
|
||||
public class ToasterBlockEntity extends BlockEntity implements BlockEntityClientSerializable {
|
||||
public class ToasterBlockEntity extends BlockEntity {
|
||||
private int cookTicks;
|
||||
|
||||
public ToasterBlockEntity(BlockPos pos, BlockState state) {
|
||||
|
@ -52,4 +51,11 @@ public class ToasterBlockEntity extends BlockEntity implements BlockEntityClient
|
|||
super.readNbt(tag);
|
||||
cookTicks = tag.getInt("cookTime");
|
||||
}
|
||||
|
||||
@Override
|
||||
public NbtCompound toInitialChunkDataNbt() {
|
||||
NbtCompound tag = super.toInitialChunkDataNbt();
|
||||
tag.putInt("cookTime", cookTicks);
|
||||
return tag;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue