Added UpdateKind.RENDER - data slots with this flag will cause the block to be re-rendered on the client after it's synced from the server

This commit is contained in:
bdew committed 2014-01-15 18:08:09 +02:00
1 parent 2c3607e113
commit 2c94505c97
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ buildscript {
apply plugin: 'forge'
apply plugin: 'scala'
version = "1.0.1"
version = "1.0.2"
if (project.hasProperty('buildnum')) {
project.version = project.version + '.' + project.buildnum
@@ -31,6 +31,8 @@ trait TileDataSlots extends TileExtended {
for ((n, s) <- dataSlots if s.updateKind.contains(kind)) {
if (TRACE) printf("%s: %s L<= %s\n".format(kind, n, t.getTag(n)))
s.load(t, kind)
if (kind == UpdateKind.WORLD && s.updateKind.contains(UpdateKind.RENDER))
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord)
}
}
@@ -13,4 +13,5 @@ object UpdateKind extends Enumeration {
val WORLD = Value("WORLD")
val GUI = Value("GUI")
val SAVE = Value("SAVE")
val RENDER = Value("RENDER")
}