Skip to content

Commit

Permalink
Added github URLs to mods TOML
Browse files Browse the repository at this point in the history
And added additional 1.15.2 compile notes

FUN
  • Loading branch information
jediminer543 committed Aug 6, 2020
1 parent bb288c8 commit 11a332b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '0.9.7'
version = '0.9.8'
group = 'org.jmt.mcmt' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'jmt_mcmt'

Expand Down Expand Up @@ -44,7 +44,7 @@ minecraft {
property 'forge.logging.console.level', 'debug'

mods {
examplemod {
jmt_mcmt {
source sourceSets.main
}
}
Expand All @@ -60,7 +60,7 @@ minecraft {
property 'forge.logging.console.level', 'debug'

mods {
examplemod {
jmt_mcmt {
source sourceSets.main
}
}
Expand All @@ -78,7 +78,7 @@ minecraft {
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/')

mods {
examplemod {
jmt_mcmt {
source sourceSets.main
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/jmt/mcmt/asmdest/ASMHookTerminator.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ public static void sendQueuedBlockEvents(Deque<BlockEventData> d, ServerWorld sw
while (bed.hasNext()) {
BlockEventData blockeventdata = bed.next();
if (sw.fireBlockEvent(blockeventdata)) {
// 1.16.1
sw.getServer().getPlayerList().sendToAllNearExcept((PlayerEntity)null, (double)blockeventdata.getPosition().getX(), (double)blockeventdata.getPosition().getY(), (double)blockeventdata.getPosition().getZ(), 64.0D, sw.func_234923_W_(), new SBlockActionPacket(blockeventdata.getPosition(), blockeventdata.getBlock(), blockeventdata.getEventID(), blockeventdata.getEventParameter()));
// 1.15.2
// sw.getServer().getPlayerList().sendToAllNearExcept((PlayerEntity)null, (double)blockeventdata.getPosition().getX(), (double)blockeventdata.getPosition().getY(), (double)blockeventdata.getPosition().getZ(), 64.0D, sw.getDimension().getType(), new SBlockActionPacket(blockeventdata.getPosition(), blockeventdata.getBlock(), blockeventdata.getEventID(), blockeventdata.getEventParameter()));
}
if (!isTicking.get()) {
LOGGER.fatal("Block updates outside of tick");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
import net.minecraft.world.server.ServerChunkProvider;
import net.minecraft.world.server.ServerWorld;
import net.minecraft.world.storage.DimensionSavedDataManager;

// 1.16.1
import net.minecraft.world.storage.SaveFormat.LevelSave;

// 1.15.2
//import java.io.File;

public class ParaServerChunkProvider extends ServerChunkProvider {

protected Map<Long, ChunkCacheLine> chunkCache = new ConcurrentHashMap<Long, ParaServerChunkProvider.ChunkCacheLine>();
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ modLoader="javafml"
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
loaderVersion="[31,)"
# A URL to refer people to when problems occur with this mod
# issueTrackerURL="http://my.issue.tracker/" #optional
issueTrackerURL="https://github.com/jediminer543/JMT-MCMT/issues"
# A list of mods - how many allowed here is determined by the individual mod loader
[[mods]] #mandatory
# The modid of the mod
modId="jmt_mcmt" #mandatory
version="${file.jarVersion}" #mandatory
displayName="JMT MCMT"
# updateJSONURL="http://myurl.me/" #optional
# displayURL="http://example.com/" #optional
displayURL="https://github.com/jediminer543/JMT-MCMT"
# logoFile="examplemod.png" #optional
credits="The glorious power of Coremods" #optional
authors="jediminer543"
Expand Down

0 comments on commit 11a332b

Please sign in to comment.